CollectionViewListLayout
public final class CollectionViewListLayout : CollectionViewLayout
A list layout that makes CollectionView a perfect alternative to NSTableView
-
The vertical spacing between items in the same column
Declaration
Swift
public final var interitemSpacing: CGFloat { get set } -
The vertical spacing between items in the same column
Declaration
Swift
public final var itemHeight: CGFloat { get set } -
The height of section header views
Declaration
Swift
public final var headerHeight: CGFloat { get set } -
The height of section footer views
Declaration
Swift
public final var footerHeight: CGFloat { get set } -
If supplementary views should respect section insets or fill the CollectionView width
Declaration
Swift
public final var insetSupplementaryViews: Bool { get set } -
Default insets for all sections
Declaration
Swift
public final var sectionInsets: NSEdgeInsets { get set } -
Declaration
Swift
override public func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool -
Declaration
Swift
override public func prepare() -
Declaration
Swift
override public var collectionViewContentSize: CGSize { get } -
Declaration
Swift
public override func rectForSection(_ section: Int) -> CGRect -
Declaration
Swift
public override func contentRectForSection(_ section: Int) -> CGRect -
Declaration
Swift
public override func layoutAttributesForItems(in rect: CGRect) -> [CollectionViewLayoutAttributes] -
Declaration
Swift
public override func layoutAttributesForItem(at indexPath: IndexPath) -> CollectionViewLayoutAttributes? -
Declaration
Swift
public override func layoutAttributesForSupplementaryView(ofKind elementKind: String, at indexPath: IndexPath) -> CollectionViewLayoutAttributes? -
Declaration
Swift
public override func scrollRectForItem(at indexPath: IndexPath, atPosition: CollectionViewScrollPosition) -> CGRect? -
Declaration
Swift
public override func indexPathForNextItem(moving direction: CollectionViewDirection, from currentIndexPath: IndexPath) -> IndexPath?