Skip to content
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

PaginationView currentPageIndex does not update UI when axis is vertical #453

Open
darrenasaro opened this issue Oct 10, 2023 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@darrenasaro
Copy link

struct PaginationViewBug: View {
  @State private var index = 0
  
  var body: some View {
    // works with .horizontal but does not with .vertical
    PaginationView(axis: .vertical) {
      Color.red
        .onTapGesture {
          index = 1
        }
      Color.blue
        .onTapGesture {
          index = 0
        }
    }
    .currentPageIndex($index)
  }
}
@vmanot vmanot self-assigned this Oct 30, 2023
@vmanot vmanot added the good first issue Good for newcomers label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants