Create Custom UISheetPresentationControllerDetents?

The new UISheetPresentationControllerDetents look great but only the medium size is new. Many applications would benefit from a small or extra small detent that only takes up 1/4th or 1/8th of the screen. Google maps is a good example.

Is there anyway to add custom detents or specify a specific sheet height?

Replies

There is not a way to add custom detents or specify a specific sheet height with UISheetPresentationController. If the system medium detent isn't sufficient for your use case, you may need to continue to use your own card/sheet implementation.