Skip to content
Discussion options

You must be logged in to vote
@State var bottomSheetPosition: Bool = .hidden

var body: some View {
    // Your view
    .bottomSheet(bottomSheetPosition: self.$bottomSheetPosition, )
}

func yourButton() -> Void {
    // Open the sheet
    self.bottomSheetPosition = .relative(0.4)
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kishore1999
Comment options

Answer selected by lucaszischka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants