Skip to content

Commit c319e23

Browse files
committed
StackNavigationViewStyle avoids split view on iPad
Previously when the sheet was created on iPad, the content would be rendered as the master view of a split view, with no detail view. Often this would lead to no content being displayed, and a confusing back button added. StackNavigationViewStyle makes no change to the iPhone design but makes this sheet suitable for form/page sheet presentation on iPad, showing the content immediately.
1 parent 9a07cc7 commit c319e23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WooCommerce/Classes/ViewRelated/ReusableViews/SwiftUI Components/WooNavigationSheet.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ struct WooNavigationSheet<Content: View>: View {
3434
}
3535
.wooNavigationBarStyle()
3636
}
37+
.navigationViewStyle(StackNavigationViewStyle())
3738
}
3839
}

0 commit comments

Comments
 (0)