Skip to content

Tabs are broken inside scrollView #142

@aqeel371

Description

@aqeel371

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions