Better Programming

Advice for programmers.

Follow publication

Member-only story

How to Present Customizable Bottom Sheets in iOS 15

Zafar Ivaev
Better Programming
Published in
4 min readOct 26, 2021
Photo by Daniel Romero on Unsplash

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:

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Zafar Ivaev
Zafar Ivaev

Written by Zafar Ivaev

Senior iOS Engineer. I write about features of Swift and iOS development practices.

Write a response