Texture icon indicating copy to clipboard operation
Texture copied to clipboard

On iOS 11, when using sectionHeadersPinToVisibleBounds, the headers overlap the scroll indicators

Open kasperwelner opened this issue 7 years ago • 6 comments

What the title says!

simulator screen shot - iphone 7 - 2017-09-19 at 14 01 13

You can use the sample project called ASCollectionView to reproduce the issue

Tested using Texture v2.4

Things work as expected on iOS 10

kasperwelner avatar Sep 19 '17 12:09 kasperwelner

+1

Pacek avatar Sep 22 '17 08:09 Pacek

+1 same problem. How can I fix it?

vitbulio avatar Sep 27 '17 08:09 vitbulio

Maybe you can try this :

override func viewDidLoad() {
      super.viewDidLoad()
      collectionNode.view.scrollIndicatorInsets = UIEdgeInsets(top: 20, left: 0, bottom: 0, right: 0)
}

remirobert avatar Oct 03 '17 08:10 remirobert

@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).

kasperwelner avatar Oct 03 '17 08:10 kasperwelner

This happens also when using UICollectionView without Texture, so it seems to be an iOS bug. Someone already created an open radar issue

BlueVirusX avatar Oct 20 '17 20:10 BlueVirusX

@kasperwelner when you set sectionHeadersPinToVisibleBounds = YES, the collectionViewLayout will set UICollectionViewLayoutAttributes.zIndex = n (n > 0) for header try set indicators.layer.zPosition = 100

GuibinLu avatar Mar 18 '21 03:03 GuibinLu