Use PasswordGeneratorFlavor class to set user defaults and UI elements
This commit is contained in:
parent
857a8f44bf
commit
2d5ca58bd9
6 changed files with 19 additions and 8 deletions
|
|
@ -18,6 +18,10 @@ public enum PasswordGeneratorFlavour: String {
|
|||
return PasswordGeneratorFlavour(rawValue: option) ?? PasswordGeneratorFlavour.RANDOM
|
||||
}
|
||||
|
||||
public var name: String {
|
||||
return rawValue.localize()
|
||||
}
|
||||
|
||||
public var defaultLength: (min: Int, max: Int, def: Int) {
|
||||
switch self {
|
||||
case .APPLE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue