Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import SwiftUI
final class AppFlowCoordinator: ObservableObject {
@Published var activeFlow: Flow = .login
func showLoginView() {
withAnimation {
activeFlow = .login
}
}
func showMainView() {
withAnimation {
activeFlow = .main
}
}
}
extension AppFlowCoordinator {
enum Flow {
case login, main
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment