Mechanism to open BottomSheet on top of a navigation bar #71
Answered
by
lucaszischka
deankroker
asked this question in
Q&A
-
Hello! We are using Apple's TabView and are triggering BottomSheet from within the view. Is there a straightforward way to open BottomSheet above the TabView's navigation bar? As of now, the navigation bar is still present. Perhaps there would be a suggestion to open this modally, i.e. above the tab view? Thank you! Example implementation:
|
Beta Was this translation helpful? Give feedback.
Answered by
lucaszischka
Jun 17, 2022
Replies: 2 comments
-
Does the following work for you? TabView(selection: $selectedView) {
Text("First View")
.tabItem {
Label("First", systemImage: "1.circle")
}
.tag(1)
Text("Second View")
.tabItem {
Label("Second", systemImage: "2.circle")
}
.tag(2)
}
.bottomSheet(...) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lucaszischka
-
yep - that works for me |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does the following work for you?