mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-14 18:35:08 +01:00
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)
|
|
}
|
|
|
|
}
|