Swiftpack.co - gaetanomatonti/BottomSheet as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by gaetanomatonti.
gaetanomatonti/BottomSheet 0.4.0
A BottomSheet component made with UIKit. Completely written in Swift 🧡
⭐️ 38
🕓 3 weeks ago
.package(url: "https://github.com/gaetanomatonti/BottomSheet.git", from: "0.4.0")


A Bottom Sheet component made in UIKit.


Swift Package Manager

Xcode Project

To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter the repository URL:


Swift Package

Edit your Package.swift file and add the repository URL to the dependencies.

dependencies: [
    .package(url: "https://github.com/gaetanomatonti/BottomSheet", .upToNextMajor(from: "0.4.0"))



Inside your view controller store a new instance of SheetTransitioningDelegate. When presenting a new view controller you should set its modalPresentationStyle to .custom and its transitioningDelegate to the SheetTransitioningDelegate you stored.


func presentViewController() {
  let viewController = UIViewController()
  viewController.modalPresentationStyle = .custom
  viewController.transitioningDelegate = sheetTransitioningDelegate
  present(viewController, animated: true)


Stars: 38
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Release 0.4.0
3 weeks ago


  • Many features such as the sizing style or handler style have been removed.
  • Support for the corner radius customisation has been temporarily removed.
  • Completely new implementation of SheetPresentationController with interactive transition.
  • Added SheetTransitioningDelegate to allow sheet presentations.
  • Example app has been updated to reflect the currently support sheet presentation.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics