Explorar el Código

Fix warning from Xcode 8.3. Fixes #55

Craig Siemens hace 8 años
padre
commit
9bb711ee5c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Sources/KeychainSwift.swift

+ 1 - 1
Sources/KeychainSwift.swift

@@ -136,7 +136,7 @@ open class KeychainSwift {
   open func get(_ key: String) -> String? {
     if let data = getData(key) {
       
-      if let currentString = NSString(data: data, encoding: String.Encoding.utf8.rawValue) as? String {
+      if let currentString = String(data: data, encoding: .utf8) {
         return currentString
       }