Currently, SheetInteraction.Change.percentageTotal is not calculated relative to a sheet's maximumDetentValue. In other words, detent.resolutionContext.maximumDetentValue * 0.5 does not equal percentageTotal = 0.5.
Ideally, these two values would be the same.
Ensure overscroll values are still properly reported when making this change.
When two or more modal sheets are presented, and user quickly swipes to close the top sheet, iOS may automatically move the now top-most sheet to a detent it deems appropriate.
When that happens, we need to figure out how to observe that change, and notify SheetInteraction's delegate.
Currently, the delegate isn't notified, and user-interface state may not reflect the actual selected detent.
When prefersScrollingExpandsWhenScrolledToEdge == true, and sheet interaction begins on a scroll view, UISheetPresentationController.selectedDetentIdentifier doesn't immediately reflect where sheet will rest on user interaction end (i.e. touch up).
UISheetPresentationController.selectedDetentIdentifier does immediately reflect end state when user interaction begins on a non-scroll view.