RBLayoutGridPositioner Class Reference

Inherits from RBLayoutPositioner : NSObject
Declared in RBLayoutGridPositioner.h

Overview

Provides a simple table grid layout.

  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

Declared In

RBLayoutGridPositioner.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

Declared In

RBLayoutGridPositioner.h

  sizing

The method of sizing child views. Default = RBLayoutGridPositionerSizeEvenly.

@property (nonatomic) RBLayoutGridPositionerSize sizing

Declared In

RBLayoutGridPositioner.h