another.im-ios/ConversationsClassic/AppCore/State/AccountsState.swift

19 lines
322 B
Swift
Raw Normal View History

2024-06-19 15:15:27 +00:00
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 = []
}
}