Skip to content

Instantly share code, notes, and snippets.

@mahmudahsan

mahmudahsan/AppState.swift

Last active Apr 15, 2020
Embed
What would you like to do?
SwiftUI: How to Pop to TabView From NavigationView #2 https://thinkdiff.net/ios/swiftui-how-to-pop-to-tabview-from-navigationview/
import SwiftUI
import Combine
class AppState: ObservableObject {
func reloadDashboard() {
(UIApplication.shared.connectedScenes.first?.delegate as? SceneDelegate)?.reloadDashboard()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment