SwiftUI – Open a specific View when user opens a Push Notification
You need some sort of shared state that you can modify that SwiftUI knows to react to. An ObservableObject is perfect for this: class AppState: ObservableObject { static let shared = AppState() @Published var pageToNavigationTo : String? } Then, to listen to it and respond to it, you can do a couple different methods in … Read more