Improved the UI of adding a new local account

This commit is contained in:
Phil Viso
2019-05-22 20:29:00 -05:00
parent fd88f94959
commit d1684a1c69
3 changed files with 31 additions and 29 deletions

View File

@@ -23,14 +23,9 @@ class AddLocalAccountViewController: UIViewController {
nameTextField.delegate = self
}
@IBAction func cancel(_ sender: Any) {
dismiss(animated: true)
}
@IBAction func done(_ sender: Any) {
@IBAction func addAccountTapped(_ sender: Any) {
let account = AccountManager.shared.createAccount(type: .onMyMac)
account.name = nameTextField.text
dismiss(animated: true)
delegate?.dismiss()
}