Button Action #104
Answered
by
lucaszischka
Kishore1999
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@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)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lucaszischka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
how to present a bottom sheet when a button pressed?
Beta Was this translation helpful? Give feedback.
All reactions