Index

RBBaseCellView.swift

Classes


RBBaseCellView

The base class for a lazy layout view cell.

Properties

The body view of the cell.
public let bodyView UIView { get set }

Whether or not the cell is currently highlighted.
public var highlighted Bool { get set }

Whether or not the left button area is currently open.
public var leftButtonAreaIsOpen Bool { get }

Whether or not the right button area is currently open.
public var rightButtonAreaIsOpen Bool { get }

An array of RBCellViewButtonSchema objects describing the buttons on the left side of the cell.
public var leftButtons [RBCellViewButtonSchema]? { get set }

An array of RBCellViewButtonSchema objects describing the buttons on the right side of the cell.
public var rightButtons [RBCellViewButtonSchema]? { get set }

Whether or not the cell is currently enabled and will accept user interaction. Default = YES.
public var enabled Bool { get set }

Whether or not the cell is currently selected. Default = NO.
public var selected Bool { get set }

Whether or not this is the 'alternate' cell. Default = NO.
public var alternate Bool { get set }

The minimum size that the cell will return when asked using sizeThatFits:. Default = CGSizeZero.
public var minimumSize CGSize { get set }

The maximum size that the cell will return when asked using sizeThatFits:. Default = CGSizeZero.
public var maximumSize CGSize { get set }

Functions

Called when initializing the cell. Use this method to instantiate and add the subviews to the bodyView object.
@param bodyView : The body view of the cell.
open func populateBodyView(_ bodyView: UIView)

Called when laying out the subviews of the cell. Use this method to set the frames of the subviews in the bodyView.
@param bodyView : The body view of the cell.
open func layoutBodyView(_ bodyView: UIView)

Called when applying a theme to the cell. Use this method to apply the theme to the subviews of the bodyView.
@param theme : The body theme dictionary.
@param bodyView : The body view of the cell.
open func applyTheme(_ theme: [String: Any], toBodyView bodyView: UIView)

Called to determine the desired size of the body view.
@param size : The available size in the container for the cell body.
@returns The desired cell body size.
open func bodyViewSizeThatFitsSize(_ size: CGSize) -> CGSize