They have now five different access levels: open, public, internal, fileprivate, and private.
% swift Welcome to Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38). Type :help for assistance. 1> var list = [10, 11, 12] list: [Int] = 3 values { [0] = 10 [1] = 11 [2] = 12 } 2> list.insert(99, at: 1) 3> print(list) [10, 99, 11, 12] 4> public var r = 1 r: Int = 1 5> internal let s = 2 s: Int = 2 6> fileprivate func myfunc() {} 7> private func urfunc() {}
You can try Swift 3 without installing if you visit IBM Swift Sandbox.