Platform/OS version:
iOS 16 (Simulator, any device)
IDE version:
Xcode 14.2
Describe the bug
After rotating the device from portrait to landscape and back, the PresentationDetents and the visibility of the DragIndicator are not applied correctly anymore.
Have you read the Contributing Guidelines?
Yes
General Information
Project version: v1.9.0 (latest release)
Platform/OS version: iOS 16 (Simulator, any device)
IDE version: Xcode 14.2
Describe the bug
After rotating the device from portrait to landscape and back, the PresentationDetents and the visibility of the DragIndicator are not applied correctly anymore.
Minimal reproduction
Steps to reproduce
.large
mode and the drag indicator is hiddenExpected behavior
The sheet should still show up in
.medium
mode and the drag indicator should still be visibleBugfix branch
I already fixed the bug in this branch https://github.com/mwocu/SwiftUIBackports/tree/fix_sheet_presentation_after_device_rotation and could submit a PR, if wanted https://github.com/shaps80/SwiftUIBackports/compare/main...mwocu:SwiftUIBackports:fix_sheet_presentation_after_device_rotation