Closed schiewe closed 1 year ago
Have you read the Contributing Guidelines?
Yes! 🎉
Issue #
UISheetPresentationController.detents are expected to be ordered:
UISheetPresentationController.detents
When you set this value, specify detents in order from smallest to largest height.
Otherwise, sheets are opened with a random dentent if you provide more than one in SwiftUI, e.g.:
.backport.presentationDetents([.medium, .large])
because detents are forwarded as an unordered Set to the underlying UISheetPresentationController.detents array for the backport:
Set
func presentationDetents(_ detents: Set<Backport<Any>.PresentationDetent>) -> some View
Thank you for this, I thought I'd fixed this already, oops 🙈
This is now in release v1.7.0 👍 – thanks for the contribution ;)
Have you read the Contributing Guidelines?
Yes! 🎉
Issue #Describe your changes
UISheetPresentationController.detents
are expected to be ordered:Otherwise, sheets are opened with a random dentent if you provide more than one in SwiftUI, e.g.:
because detents are forwarded as an unordered
Set
to the underlyingUISheetPresentationController.detents
array for the backport: