Index

RBLayoutView.swift

Protocols

Classes


RBLayoutView

A normal layout view that is preloaded with its cells.

Properties

A delegate that receives cell loading, appearance and positioning events.
public var layoutDelegate RBLayoutViewDelegate? { get set }

The positioner that determines how the cells are positioned and sized. Default = RBGridPositioner.
public var positioner RBPositioner { get set }

The array of cells in the layout view.
public var cells [UIView] { get }

Functions

Push a new cell to the layout view.
@param cell : The cell to push to the layout view.
@returns Whether or not the operation was successful.
public func pushCell(_ cell: UIView) -> Bool

Pushes multiples cells to the layout view.
@param cells : The cells to push to the layout view.
@returns Whether or not the operation was successful.
public func pushCells(_ cells: [UIView]) -> Bool

Insert a new cell to the layout view at the given index.
@param cell : The cell to insert to the layout view.
@param index : The index at which to insert the cell.
@returns Whether or not the operation was successful.
public func insertCell(_ cell: UIView, at index: Int) -> Bool

Pop the last cell from the layout view.
@returns Whether or not the operation was successful.
public func popCell() -> Bool

Pop all of the cells from the layout view.
@returns Whether or not the operation was successful.
public func popAllCells() -> Bool

Remove the cell at the given index from the layout view.
@param index : The index of the cell to remove.
@returns Whether or not the operation was successful.
public func removeCell(at index: Int) -> Bool

Remove the given cell from the layout view.
@param cell : The cell to remove from the layout view.
@returns Whether or not the operation was successful.
public func removeCell(_ cell: UIView) -> Bool

Whether or not the layout view contains the given cell.
@param cell : The cell to check for.
@returns Whether or not the cell was found in the layout view.
public func containsCell(_ cell: UIView) -> Bool

Gets the index of the given cell in the layout view.
@param cell : The cell to find the index of.
@returns The index of the cell, or NSNotFound if it was not found.
public func indexOfCell(_ cell: UIView) -> Int

public func pushCell(_ cell: UIView, positioner: RBPositioner) -> Bool

public func insertCell(_ cell: UIView, at index: Int, positioner: RBPositioner) -> Bool

public func popCell(_ positioner: RBPositioner) -> Bool

public func popAllCells(_ positioner: RBPositioner) -> Bool

public func removeCell(at index: Int, positioner: RBPositioner) -> Bool

public func removeCell(_ cell: UIView, positioner: RBPositioner) -> Bool

public func popCell(positioner: RBPositioner)

public func popAllCells(positioner: RBPositioner)

public func pushCell(cell: UIView, positioner: RBPositioner)

public func insertCell(cell: UIView, index: Int, positioner: RBPositioner)

public func removeCell(index: Int, positioner: RBPositioner)

public func removeCell(cell: UIView, positioner: RBPositioner)