mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-02-19 23:43:59 -05:00
16 lines
395 B
Swift
16 lines
395 B
Swift
import Foundation
|
|
|
|
public struct AuthMethods: OptionSet {
|
|
public let rawValue: Int
|
|
|
|
public init(rawValue: Int) {
|
|
self.rawValue = rawValue
|
|
}
|
|
|
|
public static let faceID = AuthMethods(rawValue: 1 << 0)
|
|
public static let password = AuthMethods(rawValue: 1 << 1)
|
|
|
|
public static let all: AuthMethods = [.faceID, .password]
|
|
public static let none: AuthMethods = []
|
|
}
|