Swift 3 Spelunking

06609d73ad2165c4aafcf65a1ddb9563?s=47 Greg Heo
December 19, 2016

Swift 3 Spelunking

A talk about Swift 2, Swift 3, and the future. Silicon Valley iOS Developers' Meetup, December 19, 2016.

06609d73ad2165c4aafcf65a1ddb9563?s=128

Greg Heo

December 19, 2016
Tweet

Transcript

  1. 2.
  2. 3.
  3. 5.
  4. 6.
  5. 11.
  6. 12.
  7. 14.

    let t: Any.Type = type(of: 1 as Any) print(t is

    Int.Type) // CHECK: true print(t is Float.Type) // CHECK: false (swift/test/Interpreter/generic_casts.swift)
  8. 15.

    NSNumber Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float

    Double NSValue NSRange CGPoint CGVector CGSize CGRect CGAffineTransform CATransform3D CMTime MKCoordinate NSNull _SwiftNull Optionals
  9. 16.

    [ NSError ] Error ConcreteError domain code userInfo localizedDescription localizedFailureReason

    localizedRecoverySuggestion localizedRecoveryOptions …and more
  10. 17.

    [ NSError ] CustomNSError LocalizedError RecoverableError domain code userInfo localizedDescription

    localizedFailureReason localizedRecoverySuggestion localizedRecoveryOptions …and more
  11. 18.
  12. 26.
  13. 27.
  14. 31.
  15. 32.
  16. 33.