Perform iOS 13-ification

This commit is contained in:
kabiroberai
2021-05-09 02:51:35 +05:30
committed by Kabir Oberai
Unverified
parent f9c63acfca
commit c153e869fc
2 changed files with 2 additions and 2 deletions
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -59,7 +59,7 @@ public struct KeychainStorage: KeyValueStorage {
if result != errSecSuccess {
if ignoreNotFound && result == errSecItemNotFound { return }
let info: [String: Any]?
if #available(iOS 11.3, *), let message = SecCopyErrorMessageString(result, nil) {
if let message = SecCopyErrorMessageString(result, nil) {
info = [NSLocalizedDescriptionKey: message as String]
} else {
info = nil