Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift 3 Spelunking

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.

Greg Heo

December 19, 2016
Tweet

More Decks by Greg Heo

Other Decks in Technology

Transcript

  1. 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)
  2. NSNumber Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float

    Double NSValue NSRange CGPoint CGVector CGSize CGRect CGAffineTransform CATransform3D CMTime MKCoordinate NSNull _SwiftNull Optionals
  3. [ NSError ] Error ConcreteError domain code userInfo localizedDescription localizedFailureReason

    localizedRecoverySuggestion localizedRecoveryOptions …and more
  4. [ NSError ] CustomNSError LocalizedError RecoverableError domain code userInfo localizedDescription

    localizedFailureReason localizedRecoverySuggestion localizedRecoveryOptions …and more