31 lines
607 B
Swift
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
|
|
}
|