Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Dec 1, 2023
1 parent 8758509 commit e0ea14c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/SwiftUINavigation/NavigationDestination.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
unwrapping value: Binding<Value?>,
@ViewBuilder destination: (Binding<Value>) -> Destination
) -> some View {
self._navigationDestination(isPresented: value.isPresent()) {
self._navigationDestination_bindWorkaround(isPresented: value.isPresent()) {
Binding(unwrapping: value).map(destination)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
item: Binding<Item?>,
@ViewBuilder destination: (Item) -> Destination
) -> some View {
self._navigationDestination(isPresented: item.isPresent()) {
self._navigationDestination_bindWorkaround(isPresented: item.isPresent()) {
item.wrappedValue.map(destination)
}
}

@ViewBuilder
public func _navigationDestination<Destination: View>(
public func _navigationDestination_bindWorkaround<Destination: View>(
isPresented: Binding<Bool>,
@ViewBuilder destination: () -> Destination
) -> some View {
Expand Down

0 comments on commit e0ea14c

Please # to comment.