Class

NSCollectionLayoutSize

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

Declaration

@interface 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

+ sizeWithWidthDimension:heightDimension:

Creates a size with the specified width and height dimensions.

Getting the Width and Height

widthDimension

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

heightDimension

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

Relationships

Inherits From

Conforms To

See Also

Size and Spacing

NSCollectionLayoutDimension

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

NSCollectionLayoutSpacing

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

NSCollectionLayoutEdgeSpacing

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

NSCollectionLayoutContainer

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