Created
February 25, 2019 13:20
-
-
Save magneticrob/e31cb6b9456e537ea48682bfcd93408b to your computer and use it in GitHub Desktop.
Fix for ParallaxHeader grouped section headers appearing over the header, after cell recycling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ParallaxGroupedSectionHeaderTableView: UITableView { | |
override public func layoutSubviews() { | |
super.layoutSubviews() | |
layoutHeaderViews() | |
} | |
private func layoutHeaderViews() { | |
for index in 0 ..< numberOfSections { | |
guard let sectionView = headerView(forSection: index) else { continue } | |
self.sendSubview(toBack: sectionView) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment