Skip to content

Instantly share code, notes, and snippets.

@ralfebert
Created September 9, 2021 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralfebert/bb2f9116f7463326872f7d573e7a8689 to your computer and use it in GitHub Desktop.
Save ralfebert/bb2f9116f7463326872f7d573e7a8689 to your computer and use it in GitHub Desktop.
import SwiftUI
import BottomSheet
struct ContentView: View {
@State private var bottomSheetPresented = true
var body: some View {
Color.yellow
.ignoresSafeArea()
.bottomSheet(isPresented: $bottomSheetPresented) {
Text("Hello, world!")
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment