Skip to content

Commit 0d4afab

Browse files
committed
1.4.6 tweak
1 parent 44c8d3c commit 0d4afab

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Navigator Changelog
22

3+
### 1.4.6
4+
5+
* Tweak changes presentedSheetOrCover to presentingSheetOrCover to better match Apple's existing semantics
6+
37
### 1.4.5
48

59
* Adds presentedSheetOrCover computed value to Navigator #89

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Advanced Navigation Support for SwiftUI.
88

9-
## Navigator 1.4.5
9+
## Navigator 1.4.6
1010

1111
Navigator provides SwiftUI with a simple yet powerful navigation layer based on NavigationStack.
1212

Sources/NavigatorUI/NavigatorUI/Core/NavigationPresentation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ extension Navigator {
5656
state.isPresented
5757
}
5858

59-
/// Returns NavigationDestination of currently presented sheet or cover, if any.
60-
public nonisolated var presentedSheetOrCover: (any NavigationDestination)? {
59+
/// Returns NavigationDestination of sheet or cover we're currently presenting, if any.
60+
public nonisolated var presentingSheetOrCover: (any NavigationDestination)? {
6161
(state.sheet ?? state.cover)?.wrapped as? NavigationDestination
6262
}
6363
}

0 commit comments

Comments
 (0)