Simple coordinator with router
- Change tab TabView
- Navigation by NavigationPath
- Present sheet and with dynamically height sheet
- Present full screen cover
- Alert with error
- Route from widget through coordinator
CoordinatorSwiftUI/CoordinatorSwiftUI/Coordinator/Coordinator.swift
Lines 10 to 58 in da80bda
Navigation in App | Navigation from Widget |
---|---|
CoordinatorDemonstration.mp4 |
Widget.route.mov |
Coordinator
Router
-
Coordinator https://betterprogramming.pub/an-introduction-to-coordinator-pattern-in-swiftui-38e5b02f031f
-
Sheet with dynamic height https://serialcoder.dev/text-tutorials/swiftui/presenting-sheets-of-various-heights-in-swiftui/ https://www.en.techgaku.com/get-frame-size-of-swiftui-view-dynamically/
-
Navigation examples https://bignerdranch.com/blog/the-different-forms-of-navigation-in-swiftui/
-
Alert https://www.hackingwithswift.com/quick-start/swiftui/how-to-show-an-alert