I have started creating some Q&A posts regarding the changes from Swift 2.x to 3. With the release of Xcode 8 Beta 1 today, I would imagine that users will start asking more and more questions about Swift 3, Xcode 8, and iOS 10.
Most of the class name changes are trivial: NSUserDefaults
became UserDefaults
, NSTimeInterval
became TimeInterval
, and NSDate
now has a Swift struct equivalent Date
.
How should we handle questions about the rename? Should a canonical community wiki be created that addresses this issue? Something titled "Use of undeclared identifier NS[Class]
" or "NS[Class]
is unavailable, use [Class]
?"
ReferenceType
. See the Foundation API changes for iOS 10.UserDefaults | NSUserDefaults
: developer.apple.com/reference/foundation/nsuserdefaults