Hey!

Today I will quickly walk you through on how to create a modal presentation style which can be dismissed with a pull-down gesture, much like the default iOS 13 behavior.

You’d be right to ask, why not just use the default one then?

Well, mainly two reasons:

Backwards compatibility. Need of customization. E.g. changing the presented modal’s height to half-screen only.

Let’s dive right in!

First and foremost, the reason I wrote this article is because documentation is rather scarce on this subject, and I spent a reasonable amount of my time figuring out how all the pieces fit together.