You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Intramodular/Navigation/Navigator.swift
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,11 @@ extension EnvironmentValues {
43
43
}
44
44
}
45
45
46
+
/// Encapsulated access to a navigation controller, if present.
47
+
///
48
+
/// To resolve this environment value:
49
+
/// - You must add `._resolveAppKitOrUIKitViewControllerIfAvailable()` _outside_ of the view using this via `@Environment(\.navigator)`. This allows SwiftUIX to introspect, grab and provide the nearest `UINavigationController` at runtime.
50
+
/// - There must be a navigation view present in the view hierarchy. Without a navigation view, this property will always be `nil`.
0 commit comments