New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot swipe if PagerTabStripView in another PagerTabStripView #93
Comments
Could you please attach the code where the problem occurred? Thanks ! 😄 |
Hi! |
On master branch is implemented a solution for this behavior (available for iOS 16+). The user can also configure if the swipe action is enable or not (the swipe is based on a drag gesture) and setup what edges have the gesture disabled. Params:
What is the importance to have this parameter? struct MyPagerView2: View {
@State var selection = 1
var body: some View {
PagerTabStripView(swipeGestureEnabled: .constant(true),
edgeSwipeGestureDisabled: .constant([.left]),
selection: $selection) {
MyFirstView()
.pagerTabItem(tag: 1) {
TitleNavBarItem(title: "Tab 1")
}
...
..
.
}
}
} |
Is your feature request related to a problem? Please describe.
My use case is my page have 2 levels, one for main-categories: A, B, C,
and one for sub-categories: B1, B2, B3
something like that:
A is some view
B is PagerTabStripView with 3 pages: B1, B2, B3 (both are some view)
C is some view
I can swipe from A to B, but I cant swipe from B1 to A, and
I can swipe from C to B, but I cant swipe from B3 to C
Describe the solution you'd like
I can swipe from B1 to A, and
I can swipe from B3 to C
Describe alternatives you've considered
none
Additional context
none
The text was updated successfully, but these errors were encountered: