Powerful Bottom Sheet component with content base size, interactive dismissal and navigation controller support

Programming language: Swift
License: MIT License
Tags: Swift     iOS     UI     Modal Transition     Alert & Action Sheet    

Bottom Sheet alternatives and similar libraries

Based on the "Alert & Action Sheet" category.
Alternatively, view BottomSheet alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Bottom Sheet or a related project?

Add another 'Alert & Action Sheet' Library


Bottom Sheet

Bottom Sheet component is designed to handle any content, including a scrolling one.

  • โœ… use any content size, and it will adapt
  • โœ… use scrollable content: UICollectionView, UITableView or UIScrollView
  • โœ… dismiss interactively by swipe-down or just tapping on an empty space
  • โœ… build flows inside using BottomSheetNavigationController
    • โœ… supports all system transitions: push and (interactive) pop
    • โœ… transition animated between different content sizes
  • โœ… Customize appearance:
    • pull bar visibility
    • corner radius
    • shadow background color

How it looks like

Adapts to content size Interactive dismissal
adapt-to-content-size interactive-dismissal

NavigationController inside Bottom Sheet

Push and pop transitions Interactive pop transition
system-push-pop interactive-pop


Swift Package Manager

To integrate Bottom Sheet into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift:

dependencies: [
    .package(url: "https://github.com/joomcode/BottomSheet", from: "2.0.0")

Getting started

This repo contains demo, which can be a great start for understanding Bottom Sheet usage, but here are simple steps to follow:

  1. Create UIViewController to present and set content's size by preferredContentSize property
  2. (optional) Conform to ScrollableBottomSheetPresentedController if your view controller is list-based
  3. Present by using presentBottomSheet(viewController:configuration:)

If you want to build flows, use BottomSheetNavigationController

    viewController: viewControllerToPresent,
    configuration: .default

You can customize appearance passing configuration parameter

    viewController: viewControllerToPresent,
    configuration: BottomSheetConfiguration(
        cornerRadius: 10,
        pullBarConfiguration: .visible(.init(height: 20)),
        shadowConfiguration: .init(backgroundColor: UIColor.black.withAlphaComponent(0.6))


Read the article on Medium for betting understanding of how it works under the hood