diff --git a/Locksmith.xcodeproj/project.xcworkspace/xcuserdata/matthewpalmer.xcuserdatad/UserInterfaceState.xcuserstate b/Locksmith.xcodeproj/project.xcworkspace/xcuserdata/matthewpalmer.xcuserdatad/UserInterfaceState.xcuserstate index 6492903..95b90a5 100644 Binary files a/Locksmith.xcodeproj/project.xcworkspace/xcuserdata/matthewpalmer.xcuserdatad/UserInterfaceState.xcuserstate and b/Locksmith.xcodeproj/project.xcworkspace/xcuserdata/matthewpalmer.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Locksmith/Base.lproj/Main.storyboard b/Locksmith/Base.lproj/Main.storyboard index 4f1f592..e69f8ce 100644 --- a/Locksmith/Base.lproj/Main.storyboard +++ b/Locksmith/Base.lproj/Main.storyboard @@ -1,7 +1,7 @@ - + - + @@ -16,7 +16,7 @@ - - - + + + + + - + diff --git a/Locksmith/Locksmith.swift b/Locksmith/Locksmith.swift index 15a0295..1578569 100644 --- a/Locksmith/Locksmith.swift +++ b/Locksmith/Locksmith.swift @@ -42,7 +42,7 @@ class Locksmith: NSObject { if result != nil { println("resultPointer \(result)") - if type == .Read { + if type == .Read && status == errSecSuccess { if let data = result?.takeUnretainedValue() as? NSData { // Convert the retrieved data to a dictionary resultsDictionary = NSKeyedUnarchiver.unarchiveObjectWithData(data) as? NSDictionary