|
@@ -148,7 +148,7 @@ public enum Accessibility {
|
|
|
case AlwaysThisDeviceOnly
|
|
|
}
|
|
|
|
|
|
-public struct AuthenticationPolicy : OptionSetType {
|
|
|
+public struct AuthenticationPolicy: OptionSetType {
|
|
|
/**
|
|
|
User presence policy using Touch ID or Passcode. Touch ID does not
|
|
|
have to be available or enrolled. Item is still accessible by Touch ID
|
|
@@ -220,7 +220,7 @@ public struct AuthenticationPolicy : OptionSetType {
|
|
|
@available(watchOS, unavailable)
|
|
|
public static let ApplicationPassword = AuthenticationPolicy(rawValue: 1 << 31)
|
|
|
|
|
|
- public let rawValue : Int
|
|
|
+ public let rawValue: Int
|
|
|
|
|
|
public init(rawValue:Int) {
|
|
|
self.rawValue = rawValue
|
|
@@ -1135,7 +1135,7 @@ private let UseAuthenticationUISkip = String(kSecUseAuthenticationUISkip)
|
|
|
private let SharedPassword = String(kSecSharedPassword)
|
|
|
#endif
|
|
|
|
|
|
-extension Keychain : CustomStringConvertible, CustomDebugStringConvertible {
|
|
|
+extension Keychain: CustomStringConvertible, CustomDebugStringConvertible {
|
|
|
public var description: String {
|
|
|
let items = allItems()
|
|
|
if items.isEmpty {
|
|
@@ -1233,7 +1233,7 @@ extension Options {
|
|
|
|
|
|
// MARK:
|
|
|
|
|
|
-extension Attributes : CustomStringConvertible, CustomDebugStringConvertible {
|
|
|
+extension Attributes: CustomStringConvertible, CustomDebugStringConvertible {
|
|
|
public var description: String {
|
|
|
return "\(attributes)"
|
|
|
}
|
|
@@ -1243,7 +1243,7 @@ extension Attributes : CustomStringConvertible, CustomDebugStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ItemClass : RawRepresentable, CustomStringConvertible {
|
|
|
+extension ItemClass: RawRepresentable, CustomStringConvertible {
|
|
|
|
|
|
public init?(rawValue: String) {
|
|
|
switch rawValue {
|
|
@@ -1265,7 +1265,7 @@ extension ItemClass : RawRepresentable, CustomStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public var description : String {
|
|
|
+ public var description: String {
|
|
|
switch self {
|
|
|
case GenericPassword:
|
|
|
return "GenericPassword"
|
|
@@ -1275,7 +1275,7 @@ extension ItemClass : RawRepresentable, CustomStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtocolType : RawRepresentable, CustomStringConvertible {
|
|
|
+extension ProtocolType: RawRepresentable, CustomStringConvertible {
|
|
|
|
|
|
public init?(rawValue: String) {
|
|
|
switch rawValue {
|
|
@@ -1413,7 +1413,7 @@ extension ProtocolType : RawRepresentable, CustomStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public var description : String {
|
|
|
+ public var description: String {
|
|
|
switch self {
|
|
|
case FTP:
|
|
|
return "FTP"
|
|
@@ -1481,7 +1481,7 @@ extension ProtocolType : RawRepresentable, CustomStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension AuthenticationType : RawRepresentable, CustomStringConvertible {
|
|
|
+extension AuthenticationType: RawRepresentable, CustomStringConvertible {
|
|
|
|
|
|
public init?(rawValue: String) {
|
|
|
switch rawValue {
|
|
@@ -1527,7 +1527,7 @@ extension AuthenticationType : RawRepresentable, CustomStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public var description : String {
|
|
|
+ public var description: String {
|
|
|
switch self {
|
|
|
case NTLM:
|
|
|
return "NTLM"
|
|
@@ -1549,7 +1549,7 @@ extension AuthenticationType : RawRepresentable, CustomStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension Accessibility : RawRepresentable, CustomStringConvertible {
|
|
|
+extension Accessibility: RawRepresentable, CustomStringConvertible {
|
|
|
|
|
|
public init?(rawValue: String) {
|
|
|
if #available(OSX 10.10, *) {
|
|
@@ -1614,7 +1614,7 @@ extension Accessibility : RawRepresentable, CustomStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public var description : String {
|
|
|
+ public var description: String {
|
|
|
switch self {
|
|
|
case WhenUnlocked:
|
|
|
return "WhenUnlocked"
|
|
@@ -1644,7 +1644,7 @@ extension CFError {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-public enum Status : OSStatus, ErrorType {
|
|
|
+public enum Status: OSStatus, ErrorType {
|
|
|
case Success = 0
|
|
|
case Unimplemented = -4
|
|
|
case DiskFull = -34
|
|
@@ -2050,7 +2050,7 @@ public enum Status : OSStatus, ErrorType {
|
|
|
case UnexpectedError = -99999
|
|
|
}
|
|
|
|
|
|
-extension Status : RawRepresentable, CustomStringConvertible {
|
|
|
+extension Status: RawRepresentable, CustomStringConvertible {
|
|
|
|
|
|
public init(status: OSStatus) {
|
|
|
if let mappedStatus = Status(rawValue: status) {
|
|
@@ -2060,7 +2060,7 @@ extension Status : RawRepresentable, CustomStringConvertible {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public var description : String {
|
|
|
+ public var description: String {
|
|
|
switch self {
|
|
|
case Success:
|
|
|
return "No error."
|