Member-only story
How to Present Customizable Bottom Sheets in iOS 15
Using a UISheetPresentationController
In this article, we will learn how to present bottom sheets using UISheetPresentationController
API, which is available in iOS 15. The source code of the sample project is available at the bottom of the article. In short, this is what you will know after finishing this tutorial:
- How to present any
UIViewController
as a bottom sheet. - How to provide sizes for your bottom sheets.
- How to customize the layout and behavior of the bottom sheet.
- What nuances to consider when making a decision to use a
UISheetPresentationController
.
This is what we’re going to build:

Let’s Start
We start with a UIViewController
that displays a button in the center of the screen: