You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm working on updating a project from using NavigationView into the new NavigationSplitView and NavigationStack since the min deployment iOS has been bumped to iOS 16. I encountered an issue when trying to change the default width of the sidebar of a NavigationSplitView in a 2 columns setup (aka the Master View). The property maximumPrimaryColumnWidth during the .instrospect block is always reseted only on iOS 18 (default value: -3.4028234663852886e+38) which forces me to set this property every time instead of just once as I had it before. Even so, when showing a sheet, you can see in the back the sidebar's width changing which doesn't look good (the property being reset is happening regardless of the sheet and the ObservableObject, you can confirm this with the print, this is just a setup to see the problem visually).
Please advise if this is an issue with the library or if I should raise it to Apple (since they're always changing the SwiftUI components every release...)
Below I put the code from a new project with SwiftUIIntrospect 1.3.0 installed through Cocoapods.
Checklist
I have read the README before submitting this report.
Description
Hello,
I'm working on updating a project from using
NavigationView
into the newNavigationSplitView
andNavigationStack
since the min deployment iOS has been bumped to iOS 16. I encountered an issue when trying to change the default width of the sidebar of aNavigationSplitView
in a 2 columns setup (aka the Master View). The propertymaximumPrimaryColumnWidth
during the.instrospect
block is always reseted only on iOS 18 (default value:-3.4028234663852886e+38
) which forces me to set this property every time instead of just once as I had it before. Even so, when showing a sheet, you can see in the back the sidebar's width changing which doesn't look good (the property being reset is happening regardless of the sheet and the ObservableObject, you can confirm this with theprint
, this is just a setup to see the problem visually).Please advise if this is an issue with the library or if I should raise it to Apple (since they're always changing the SwiftUI components every release...)
Below I put the code from a new project with SwiftUIIntrospect 1.3.0 installed through Cocoapods.
Checklist
Expected behavior
NavigationSplitView.iOS.17.mov
Actual behavior
NavigationSplitView.iOS.18.mov
Steps to reproduce
Version information
1.3.0
Destination operating system
iOS 18
Xcode version information
16.2
Swift Compiler version information
The text was updated successfully, but these errors were encountered: