Skip to content

Commit 8cdc232

Browse files
Reverts wrapping screen in ZStack (#68)
1 parent 37259f7 commit 8cdc232

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/FlowStacks/Node.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ indirect enum Node<Screen, V: View>: View {
9999
/// on the same view, so we conditionally add the sheet/cover modifiers as a workaround. See
100100
/// https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-14_5-release-notes
101101
if #available(iOS 14.5, *) {
102-
// We wrap the screenView in a ZStack to ensure the NavigationLink is attached
103-
// to something with a stable identity.
104-
// https://github.com/johnpatrickmorgan/FlowStacks/discussions/57#discussioncomment-6276362
105-
ZStack { screenView }
102+
screenView
106103
.background(
107104
NavigationLink(destination: next, isActive: pushBinding, label: EmptyView.init)
108105
.hidden()

0 commit comments

Comments
 (0)