jed_fox1’s avatarjed_fox1’s Twitter Archive — № 1,078

  1. …in reply to @stroughtonsmith
    @stroughtonsmith This bit of code feels very wrong to me. If the type is not defined as Optional, it’s impossible for it to be equal to nil (except for weird cases like ExpressibleByNilLiteral). My guess is that you’d get a UIApplication value here but it would point to 0x0.
    1. …in reply to @jed_fox1
      @stroughtonsmith Maybe withUnsafeBytes would help you test this case? developer.apple.com/documentation/swift/2635826-withunsafebytes