Introduce enum for password generator flavour
This commit is contained in:
parent
1f57305203
commit
3cd8df310c
10 changed files with 102 additions and 47 deletions
|
|
@ -53,11 +53,6 @@ public class Utils {
|
|||
}
|
||||
return attributedPassword
|
||||
}
|
||||
public static func initDefaultKeys() {
|
||||
if SharedDefaults[.passwordGeneratorFlavor] == "" {
|
||||
SharedDefaults[.passwordGeneratorFlavor] = "Random"
|
||||
}
|
||||
}
|
||||
|
||||
public static func alert(title: String, message: String, controller: UIViewController, handler: ((UIAlertAction) -> Void)? = nil, completion: (() -> Void)? = nil) {
|
||||
let alert = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.alert)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue