Swiftpack.co - Polenoso/BottomSheetSUI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Polenoso.
Polenoso/BottomSheetSUI 1.0.1
SwiftUI package to present a Bottom Sheet interactable view with the desired Detents. Also known as Half sheet.
⭐️ 7
🕓 19 weeks ago
.package(url: "https://github.com/Polenoso/BottomSheetSUI.git", from: "1.0.1")


BottomSheetSUI is a package that gives you the ability to show a Bottom sheet interactable, where you can add your own SwiftUI view.

You can customize the detents available for the sheet. Small, Medium and Large. It will use just a set of them.

The project is inspired by the implementation of UISheetPresentationController in UIKit to make it available for SwiftUI.

It is also inspired by the content made by KavSoft, modified to make it reusable within any view.


Use the package manager SPM to add BottomSheetSUI.

dependencies: [
        .package(url: "https://github.com/Polenoso/BottomSheetSUI.git", from: "1.0.1"),
        dependencies: [BottomSheetSUI])


import BottomSheetSUI

struct SomeView: View {
    @State var detent: SheetDetent = .small
    var body: some View {
        BottomSheetView(detent: self.$detent) {
            Text("This is an example content")



Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.




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

Release Notes

v1.0.1 small fix
19 weeks ago

Adding Detent binding from super view Fixing scroll overflow

Full Changelog: https://github.com/Polenoso/BottomSheetSUI/compare/1.0.0...1.0.1

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