2024-08-11 00:28:01 +00:00
|
|
|
import Combine
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
@MainActor
|
|
|
|
final class NavigationStore: ObservableObject {
|
|
|
|
enum Flow: Equatable {
|
2024-08-11 14:02:18 +00:00
|
|
|
enum Entering: Equatable {
|
2024-08-11 00:28:01 +00:00
|
|
|
case welcome
|
|
|
|
case login
|
|
|
|
case registration
|
|
|
|
}
|
|
|
|
|
2024-08-11 14:02:18 +00:00
|
|
|
enum Main: Equatable {
|
|
|
|
enum Contacts: Equatable {
|
|
|
|
case list
|
|
|
|
case add
|
|
|
|
}
|
|
|
|
|
|
|
|
case contacts(Contacts)
|
2024-08-11 00:28:01 +00:00
|
|
|
case conversations
|
|
|
|
case settings
|
|
|
|
}
|
|
|
|
|
|
|
|
case start
|
|
|
|
case entering(Entering)
|
|
|
|
case main(Main)
|
|
|
|
}
|
|
|
|
|
|
|
|
@Published var flow: Flow = .start
|
|
|
|
}
|