Skip to content

Commit fe9fca4

Browse files
committed
Update documentation
1 parent 3647e7d commit fe9fca4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Intramodular/Navigation/Navigator.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ extension EnvironmentValues {
4343
}
4444
}
4545

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`.
4651
public var navigator: Navigator? {
4752
get {
4853
self[NavigatorEnvironmentKey.self]

0 commit comments

Comments
 (0)