Slide 14
Slide 14 text
UICollectionViewLayout
class UICollectionViewLayout {
class var layoutAttributesClass: AnyClass
class var invalidationContextClass: AnyClass
func prepare()
func layoutAttributesForElements(in rect: CGRect)
func layoutAttributesForItem(at indexPath: IndexPath)
func layoutAttributesForSupplementaryView(ofKind: String, at: IndexPath)
func layoutAttributesForDecorationView(ofKind: String, at: IndexPath)
func shouldInvalidateLayout(forBoundsChange newBounds: CGRect)
func invalidationContext(forBoundsChange newBounds: CGRect)
func shouldInvalidateLayout(forPreferredLayoutAttributes:, withOriginalAttributes:)
func invalidationContext(forPreferredLayoutAttributes:, withOriginalAttributes:)
func targetContentOffset(forProposedContentOffset: CGPoint, withScrollingVelocity: CGPoint)
func targetContentOffset(forProposedContentOffset: CGPoint)
var collectionViewContentSize: CGSize
...