Classes
The following classes are available globally.
-
Simple implementation of
See moreSelectionCell
with two labels and checkmark selection state.Declaration
Swift
public class SelectionTableViewCell: UITableViewCell, SelectionCell
-
Simple class to display a list of choices.
The class generates cells using the identifiers
Basic
orDetail
based on the values inself.optionDetails
. Cells should be registered against these identifiers to prevent exceptions being thrown. Options can be configured into multiple sections using nested arrays in thesortedOptionKeys
property. Cells should conform toSelectionCell
. Visual cell selection should be configured in the cell itself.The
See moredelegate
property should be set to return the selected choice(s) on dismissal. The delegate methods only request dismissal, they makes no assumption of how to be dismissed. This allows for modal / push / custom / child view controller presentation of the choices.Declaration
Swift
public class SelectionViewController: UIViewController, UITableViewDataSource, UITableViewDelegate