RAMReel
public final class RAMReel
<
CellClass: UICollectionViewCell,
TextFieldClass: UITextField,
DataSource: FlowDataSource
where
CellClass: ConfigurableCell,
CellClass.DataType == DataSource.ResultType,
DataSource.QueryType == String,
DataSource.ResultType: Renderable,
DataSource.ResultType: Parsable
>
Reel class
-
Container view
Declaration
Swift
public let view: UIView
-
Type of selected item change callback hook
Declaration
Swift
public typealias HookType = (DataSource.ResultType) -> Void
-
Undocumented
Declaration
Swift
public final class RAMReel < CellClass: UICollectionViewCell, TextFieldClass: UITextField, DataSource: FlowDataSource where CellClass: ConfigurableCell, CellClass.DataType == DataSource.ResultType, DataSource.QueryType == String, DataSource.ResultType: Renderable, DataSource.ResultType: Parsable >
-
Undocumented
Declaration
Swift
public final class RAMReel < CellClass: UICollectionViewCell, TextFieldClass: UITextField, DataSource: FlowDataSource where CellClass: ConfigurableCell, CellClass.DataType == DataSource.ResultType, DataSource.QueryType == String, DataSource.ResultType: Renderable, DataSource.ResultType: Parsable >
-
Undocumented
Declaration
Swift
public final class RAMReel < CellClass: UICollectionViewCell, TextFieldClass: UITextField, DataSource: FlowDataSource where CellClass: ConfigurableCell, CellClass.DataType == DataSource.ResultType, DataSource.QueryType == String, DataSource.ResultType: Renderable, DataSource.ResultType: Parsable >
-
Use this property to get which item was selected. Value is nil, if data source output is empty.
Declaration
Swift
public var selectedItem: DataSource.ResultType?
-
This hooks that are called on selected item change
Declaration
Swift
public var hooks: [HookType] = []
-
Visual appearance theme
Declaration
Swift
public var theme:Theme = RAMTheme.sharedTheme
-
Undocumented
Declaration
Swift
public final class RAMReel < CellClass: UICollectionViewCell, TextFieldClass: UITextField, DataSource: FlowDataSource where CellClass: ConfigurableCell, CellClass.DataType == DataSource.ResultType, DataSource.QueryType == String, DataSource.ResultType: Renderable, DataSource.ResultType: Parsable >
-
:placeholder: Optional text field placeholder
:hook: Optional initial value change hook
Declaration
Swift
public init(frame: CGRect, dataSource: DataSource, placeholder: String = "", hook: HookType? = nil)
Parameters
frame
Rect that Reel will occupy
dataSource
Object of type that implements FlowDataSource protocol