Class

NSCollectionLayoutSize

The width and the height of an item in a collection view.

Declaration

class NSCollectionLayoutSize : NSObject

Overview

A size is a pair of dimensions (NSCollectionLayoutDimension): a width dimension and a height dimension. Every component of a collection view layout has an explicit size.

Topics

Creating a Layout Size

Getting the Width and Height

var widthDimension: NSCollectionLayoutDimension

The width dimension of an item in a collection view layout.

var heightDimension: NSCollectionLayoutDimension

The height dimension of an item in a collection view layout.

Relationships

Inherits From

See Also

Size and Spacing

class NSCollectionLayoutDimension

An individual dimension of an item's size (width or height) in a collection view.

class NSCollectionLayoutSpacing

An object that defines the space between or around items in a collection view.

class NSCollectionLayoutEdgeSpacing

An object that defines the space around the edges of items in a collection view.

protocol NSCollectionLayoutContainer

A protocol used to provide information about the size and content insets of a layout's container.