/DGScrollableSegmentControl

An elegant scrollable segment control.

Primary LanguageSwift

DGScrollableSegmentControl

An elegant scrollable segment control.

screen shot 2017-08-23 at 3 04 10 pm

Usage

  1. Drag DGScrollableSegmentControl.swift to your project.
  2. Place a View on Storybard and assign DGScrollableSegmentControl class to that View.
  3. Make outlet connection
  4. Implement DGScrollableSegmentControlDataSource and DGScrollableSegmentControlDelegate

DataSource Methods to implement

    func numbersOfItem() -> Int 
    func itemfor(_ index: Int) -> DGItem 

Delegate Methods to implement

     func didSelect(_ item: DGItem, atIndex index: Int) 

For more reference See demo project