another.im-ios/ConversationsClassic/AppData/Stores/NavigationStore.swift
2024-08-11 16:02:18 +02:00

31 lines
607 B
Swift

import Combine
import Foundation
@MainActor
final class NavigationStore: ObservableObject {
enum Flow: Equatable {
enum Entering: Equatable {
case welcome
case login
case registration
}
enum Main: Equatable {
enum Contacts: Equatable {
case list
case add
}
case contacts(Contacts)
case conversations
case settings
}
case start
case entering(Entering)
case main(Main)
}
@Published var flow: Flow = .start
}