RBLayoutStaggeredGridPositioner Class Reference

Inherits from RBLayoutPositioner : NSObject
Declared in RBLayoutStaggeredGridPositioner.h

Overview

Provides a staggered grid layout where the number of columns per row recurs.

  orientation

The orientation of the grid, and thus how it expands to fit views pushed to it. e.g. a vertical grid will expand vertically. Default = RBOrientationVertical.

@property (nonatomic) RBOrientation orientation

Discussion

The orientation of the grid, and thus how it expands to fit views pushed to it. e.g. a vertical grid will expand vertically. Default = RBOrientationVertical.

Declared In

RBLayoutStaggeredGridPositioner.h

  dimensions

The number of rows/columns (depending on orientation), for each row set (repeats). i.e. [ 2, 3 ] will have a 2, 3, 2, 3, … repeating number of dimensions. Default = [ 1 ].

@property (nonatomic, nonnull) NSArray<NSNumber*> *dimensions

Discussion

The number of rows/columns (depending on orientation), for each row set (repeats). i.e. [ 2, 3 ] will have a 2, 3, 2, 3, … repeating number of dimensions. Default = [ 1 ].

Declared In

RBLayoutStaggeredGridPositioner.h