Add the ability to update iOS account credentials

This commit is contained in:
Maurice Parker
2019-06-03 05:04:03 -05:00
parent a697f98228
commit 6afd65858a
5 changed files with 92 additions and 27 deletions

View File

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