RAMReel

Reel class

  • Container view

    Declaration

    Swift

    public let view: UIView
  • Type of selected item change callback hook

    Declaration

    Swift

    public typealias HookType = (DataSource.ResultType) -> ()
  • 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
  • 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