RESegmentedControl

open class RESegmentedControl : UIControl

Segmeted Control

  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
  • Segment items count

    Declaration

    Swift

    public var segmentItemsCount: Int { get }
  • Adds new segment item with the specified model

    Declaration

    Swift

    public func addItem(_ item: SegmentModel, atIndex index: Int? = nil)

    Parameters

    item

    Segment item model

    index

    Index where should be added (optional)

  • Removes segment item

    Declaration

    Swift

    public func removeItem(atIndex index: Int? = nil)

    Parameters

    index

    Index where should be removed (optional)

  • Clears images cache, that was downloaded from a remote server

    Declaration

    Swift

    public func clearCache()
  • Deselect selected segment item

    Declaration

    Swift

    public func deselect()