This library will be deprecated, due to the new SwiftUI 4 custom sheet size capabilities. Since this functionality will be added to SwiftUI, this library is no longer needed.
In SwiftUI 4, you can use the new
presentationDetents view modifier to define custom sheet sizes. You can also make sheets non-dismissable, hide the resize handle, etc. You can read more about these new capabilities here.
This library will not be developed further, but will be around for a while, for those of you who use it. It will be archived before it's completely removed in a few years.
BottomSheet makes it easy to add custom bottom sheets to your
SwiftUI apps. The result can look like this, or completely different:
These sheets can be resized manually and programatically and can be customized to fit your specific needs. You can change colors, fonts, corner radius, expanded height etc. and add any content to them.
iOS 13 and
BottomSheet can be installed with the Swift Package Manager:
or with CocoaPods:
To get started with BottomSheet, have a look at this getting started guide.
The online documentation contains more information, code examples etc. and makes it easy to overview the various parts of the library.
The online documentation is currently iOS only. To generate documentation for other platforms, open the package in Xcode, select a simulator then run
This project contains a demo app that lets you explore BottomSheet on iOS. To run it, just open and run
You can sponsor this project on GitHub Sponsors or get in touch for paid support.
Feel free to reach out if you have questions or if you want to contribute in any way:
BottomSheet is available under the MIT license. See the LICENSE file for more info.
|Last commit: 1 week ago|
BottomSheetHandleStyleare now mutable.
BottomSheetStyle.standardis now mutable and lets you change the standard style.