invalidateDetents()
Notifies the sheet to re-evaluate its detent value in the next layout pass.
Declaration
func invalidateDetents()Discussion
When an external input (like a captured property) to a custom detent changes, call this method to notify the sheet to re-evaluate the detent.
To animate custom detents to their new heights, call this method within animateChanges(_:).