I have created a paging app With SwiftUI TabView with TabViewStyle: PageTabViewStyle. In every page there is an UICollectionView holding a list of rows. Now I have used UIViewControllerRepresentable to show the view inside TabView.
It works okay, but the Scroll to top gesture doesn't work here when pressed in the iPhones StatusBar.
Is it a fault of TabView or I am missing Something?
It may happen because of TabViews Scroll property. In UIKIT Views We needed to disable the scrollToTop property of scrollviews (Other then the desired one) is there any public API's for SwiftUI Views in replacement for setting scrollsToTop property?
Post
Replies
Boosts
Views
Activity
I have created a paging app With SwiftUI TabView with TabViewStyle: PageTabViewStyle. In every page there is an UICollectionView holding a list of rows. Now I have used UIViewControllerRepresentable to show the view inside TabView.
It works okay, but the iOS default phenomenon that when a user pressed out side the safeArea on top(near the notch), the collectionview auto scrolls to top, doesn't work.
Is it a fault of TabView or I am missing Something?
I have designed an UICollectionView with CustomLayout. The layout depends on the data. Whenever a new data pattern is appeared we update the data and call the UICollectionView reload data. But sometimes I found that although the data is updated, The layout remains unchanged.