another.im-ios/ConversationsClassic/AppCore/State/AccountsState.swift
2024-07-22 14:02:33 +02:00

21 lines
399 B
Swift

enum AccountNavigationState: Stateable {
case addAccount
}
struct AccountsState: Stateable {
var navigation: AccountNavigationState
var accounts: [Account]
var discoFeatures: [String: [ServerFeature]]
var addAccountError: String?
}
// MARK: Init
extension AccountsState {
init() {
navigation = .addAccount
accounts = []
discoFeatures = [:]
}
}