Swiftpack.co - tmn/BottomSheet as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by tmn.
tmn/BottomSheet v0.0.1
A SwiftUI Component for showing a "Maps-like" bottom sheet.
⭐️ 0
🕓 3 years ago
iOS macOS
.package(url: "https://github.com/tmn/BottomSheet.git", from: "v0.0.1")

BottomSheet

A SwiftUI Component for showing a Map like bottom sheet.

Usage

Add a package to your Xcode project by select File > Swift Packages > Add Package Dependency and enter https://github.com/tmn/BottomSheet.

struct ContentView: View {
    @State var viewState: BottomSheetViewState = .peek

    var body: some View {
        ZStack {
            Color.pink

            BottomSheet(viewState: self.$viewState) {
                Text("Sheet content")
            }
        }
    }
}

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