-
Notifications
You must be signed in to change notification settings - Fork 607
Open
Description
I'm always set the parallaxHeaderReferenceSize's height to fixed numbers like "232".
But I want get the parallaxHeaderReferenceSize's height dynamically.
Is there a way to get the parallaxHeaderReferenceSize's height from xib files?
In viewdidload function.
if let layout = self.collectionViewLayout as? CSStickyHeaderFlowLayout {
layout.parallaxHeaderReferenceSize = CGSize(width: self.view.frame.size.width, height: 232)
layout.parallaxHeaderMinimumReferenceSize = CGSize(width: self.view.frame.size.width, height: 232)
layout.parallaxHeaderAlwaysOnTop = false
layout.disableStretching = true
layout.detachTopLayout = true
}
after that
Can I update the layout.parallaxHeaderMinimumReferenceSize? in
override func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {
}
Metadata
Metadata
Assignees
Labels
No labels