Improve PresentationDetents on iOS 15 by adding support for .height(value) as a detent.
Note the backport is using private apis on iOS 15.0 to 16.0 and regular api above iOS 16.0.
The comparable implementation is not perfect and I think should be removed.
This is unfinished as I just leant about the .presentationDetents(undimmed:largestUndimmed:) but I wanted your feedback about the ObjC/Private api use
https://github.com/shaps80/SwiftUIBackports/issues/52
Describe your changes
Improve PresentationDetents on iOS 15 by adding support for .height(value) as a detent. Note the backport is using private apis on iOS 15.0 to 16.0 and regular api above iOS 16.0.
The comparable implementation is not perfect and I think should be removed.
This is unfinished as I just leant about the
.presentationDetents(undimmed:largestUndimmed:)
but I wanted your feedback about the ObjC/Private api use