19 lines
322 B
Swift
19 lines
322 B
Swift
enum AccountNavigationState: Stateable {
|
|
case addAccount
|
|
}
|
|
|
|
struct AccountsState: Stateable {
|
|
var navigation: AccountNavigationState
|
|
var accounts: [Account]
|
|
|
|
var addAccountError: String?
|
|
}
|
|
|
|
// MARK: Init
|
|
extension AccountsState {
|
|
init() {
|
|
navigation = .addAccount
|
|
accounts = []
|
|
}
|
|
}
|