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

Tabs are broken inside scrollView #142

Open
aqeel371 opened this issue Oct 2, 2024 · 0 comments
Open

Tabs are broken inside scrollView #142

aqeel371 opened this issue Oct 2, 2024 · 0 comments

Comments

@aqeel371
Copy link

aqeel371 commented Oct 2, 2024

Tabs are broken inside scrollView
If you embed PagerTabStripView inside scrollview i starts taking a lots of memory and app also slows down and stuct

ScrollView{
    PagerTabStripView(){
        ForEach(0..<categores.count, id: \.self) { index in
            CategoryRowView().pagerTabItem(tag: index) {
                TitleNavBarItem(title: categores[index])
            }
        }
    }
    .pagerTabStripViewStyle(.scrollableBarButton(tabItemSpacing: 35,
                                                 tabItemHeight: 30,
                                                 indicatorView: {
        Rectangle().fill(.colorPrimaryButton).cornerRadius(5)
    }))
}

Xcode: 16
iOS: 18

@aqeel371 aqeel371 changed the title Tabs are broken in inside scrollView Tabs are broken inside scrollView Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant