Basic Information
Please provide a descriptive title for your feedback:
Sheet presentationDetents breaks after rapid open/dismiss cycles
Which platform is most relevant for your report?
iOS
Description
Steps to Reproduce:
- Create a sheet with presentationDetents([.medium])
- Rapidly perform these actions multiple times (usually 3-4 times): a. Open the sheet b. Immediately scroll down to dismiss
- Open the sheet again
- Observe that the sheet now appears at .large size, ignoring the .medium detent
Expected Result: Sheet should consistently maintain .medium size regardless of how quickly it is opened and dismissed.
Actual Result: After rapid open/dismiss cycles, the sheet ignores .medium detent and appears at .large size.
Reproduction Rate:
- Occurs consistently after 3-4 rapid open/dismiss cycles
- More likely to occur with faster open/dismiss actions
Configuration:
- iOS 18
- Xcode 16.0 (16A242d)
- SwiftUI
- Device: iPhone 14