evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.82k stars 345 forks source link

String cast warning in Swift 3.1 #55

Closed hipwelljo closed 7 years ago

hipwelljo commented 7 years ago

A minor warning, from Xcode 8.3 beta: KeychainSwiftDistrib.swift:154:92: Conditional downcast from 'NSString?' to 'String' is a bridging conversion; did you mean to use 'as'?

screen shot 2017-02-26 at 6 02 49 pm
rsaeks commented 7 years ago

Have seen this in the most recent XCode Version 8.3 beta 3 (8W132p)

evgenyneu commented 7 years ago

Thanks for reporting, feel free to submit a pull request, since I don't have Xcode 8.3 beta yet.

0xc00010ff commented 7 years ago

👍 ♻️