xmartlabs / PagerTabStripView

🚀 Elegant Pager View fully written in pure SwiftUI.
MIT License
774 stars 88 forks source link

Tabs are broken inside scrollView #142

Open aqeel371 opened 1 month ago

aqeel371 commented 1 month ago

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