Skip to content

Instantly share code, notes, and snippets.

@mahmudahsan
Last active April 15, 2020 01:21
Show Gist options
  • Save mahmudahsan/b522249d4b6434e86d870981da099788 to your computer and use it in GitHub Desktop.
Save mahmudahsan/b522249d4b6434e86d870981da099788 to your computer and use it in GitHub Desktop.
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