Remove branches for iOS 12 compatibility
This commit is contained in:
parent
7000834575
commit
b09bc7444f
7 changed files with 17 additions and 59 deletions
|
|
@ -7,33 +7,13 @@
|
|||
//
|
||||
|
||||
public enum Colors {
|
||||
public static let label: UIColor = {
|
||||
if #available(iOS 13.0, *) {
|
||||
return .label
|
||||
}
|
||||
return .black
|
||||
}()
|
||||
public static let label: UIColor = .black
|
||||
|
||||
public static let secondaryLabel: UIColor = {
|
||||
if #available(iOS 13.0, *) {
|
||||
return .secondaryLabel
|
||||
}
|
||||
return .init(red: 60.0, green: 60.0, blue: 67.0, alpha: 0.6)
|
||||
}()
|
||||
public static let secondaryLabel: UIColor = .init(red: 60.0, green: 60.0, blue: 67.0, alpha: 0.6)
|
||||
|
||||
public static let systemBackground: UIColor = {
|
||||
if #available(iOS 13.0, *) {
|
||||
return .systemBackground
|
||||
}
|
||||
return .white
|
||||
}()
|
||||
public static let systemBackground: UIColor = .white
|
||||
|
||||
public static let secondarySystemBackground: UIColor = {
|
||||
if #available(iOS 13.0, *) {
|
||||
return .secondarySystemBackground
|
||||
}
|
||||
return .init(red: 242.0, green: 242.0, blue: 247.0, alpha: 1.0)
|
||||
}()
|
||||
public static let secondarySystemBackground: UIColor = .init(red: 242.0, green: 242.0, blue: 247.0, alpha: 1.0)
|
||||
|
||||
public static let systemRed = UIColor.systemRed
|
||||
|
||||
|
|
|
|||
|
|
@ -27,9 +27,7 @@ public class YubiKeyConnection: NSObject {
|
|||
completion(connection)
|
||||
} else {
|
||||
connectionCallback = completion
|
||||
if #available(iOSApplicationExtension 13.0, *) {
|
||||
YubiKitManager.shared.startNFCConnection()
|
||||
}
|
||||
YubiKitManager.shared.startNFCConnection()
|
||||
}
|
||||
cancellationCallback = cancellation
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue