Texture
Texture copied to clipboard
On iOS 11, when using sectionHeadersPinToVisibleBounds, the headers overlap the scroll indicators
What the title says!
You can use the sample project called ASCollectionView to reproduce the issue
Tested using Texture v2.4
Things work as expected on iOS 10
+1
+1 same problem. How can I fix it?
Maybe you can try this :
override func viewDidLoad() {
super.viewDidLoad()
collectionNode.view.scrollIndicatorInsets = UIEdgeInsets(top: 20, left: 0, bottom: 0, right: 0)
}
@remirobert That would only offset the scroll bar indicator so that its top position is 20 points below the top which would look horrible. Also it wouldn't keep the section headers from section 1 and down from overlapping the indicator. This is something that needs to be fixed in Texture (probably in the texture implementation of the collection view flow layout).
This happens also when using UICollectionView without Texture, so it seems to be an iOS bug. Someone already created an open radar issue
@kasperwelner when you set sectionHeadersPinToVisibleBounds = YES, the collectionViewLayout will set UICollectionViewLayoutAttributes.zIndex = n (n > 0) for header try set indicators.layer.zPosition = 100