Add cell model for accounts list

This commit is contained in:
Ivan Grachyov 2021-07-27 23:52:33 +03:00
parent a1ce8909ea
commit 1d7edbb9b4

View File

@ -7,9 +7,15 @@ class AccountsListViewController: NSViewController {
private let agent = Agent.shared
private let accountsService = AccountsService.shared
private var accounts = [Account]()
private var cellModels = [CellModel]()
var onSelectedAccount: ((Account) -> Void)?
enum CellModel {
case account(Account)
case addAccountOption(AddAccountOption)
}
enum AddAccountOption {
case createNew, importExisting