27 lines
555 B
Swift
27 lines
555 B
Swift
|
//
|
||
|
// AddLocalAccountViewController.swift
|
||
|
// NetNewsWire-iOS
|
||
|
//
|
||
|
// Created by Maurice Parker on 5/19/19.
|
||
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import UIKit
|
||
|
import Account
|
||
|
|
||
|
class AddLocalAccountViewController: UIViewController {
|
||
|
|
||
|
@IBOutlet weak var nameTextField: UITextField!
|
||
|
|
||
|
@IBAction func cancel(_ sender: Any) {
|
||
|
dismiss(animated: true)
|
||
|
}
|
||
|
|
||
|
@IBAction func done(_ sender: Any) {
|
||
|
let account = AccountManager.shared.createAccount(type: .onMyMac)
|
||
|
account.name = nameTextField.text
|
||
|
dismiss(animated: true)
|
||
|
}
|
||
|
|
||
|
}
|