Structures
The following structures are available globally.
-
The actions property exposed on the CellConfigType represents possible events that will be executed based on the users interaction with that particular cell. Of note are the
See moreselectionAction
andpreviewingViewControllerAction
. TheselectionAction
is executed when the user taps on that particular cell. The main use case for this is present a new detail view controller or a modal (but is not constrained to these actions, these are just the common use cases). ThepreviewingViewControllerAction
is responsible for returning an instance of a UIViewController that will be shown when a user 3D-touches on a cell.Declaration
Swift
public struct CellActions
-
Defines the presentation information of an item inside a
TableSection
.Some properties are only supported by
See moreUITableView
.Declaration
Swift
public struct CellStyle
-
Defines the view, state and layout information of a row item inside a TableSection. It relies on you to build UIView subclasses and use those instead of implementing UITableViewCell or UICollectionViewCell subclasses. This has the side effect of building better more reusable view components. This greatly simplifies composition by combining several host-cells into more complex layouts. It also makes equality simpler and more
See moreSwifty
by requiring that anything provided as State only requires that the State object conform to the Equatable protocol. The View portion of the generic only requires it to be a UIView subclass.Declaration
Swift
public struct HostCell<View, State, Layout> : CellConfigType where View : UIView, State : Equatable, Layout : TableItemLayout
-
Defines the style, and state information of a section.
See moreFunctionalTableData
deals in arrays ofTableSection
instances. Each section, at a minimum, has a string value unique within the table itself, and an array ofCellConfigType
instances that represent the rows of the section. Additionally there may be a header and footer for the section.Declaration
Swift
public struct TableSection : Sequence, TableSectionType