An elegant scrollable segment control.
- Drag DGScrollableSegmentControl.swift to your project.
- Place a View on Storybard and assign DGScrollableSegmentControl class to that View.
- Make outlet connection
- Implement DGScrollableSegmentControlDataSource and DGScrollableSegmentControlDelegate
func numbersOfItem() -> Int
func itemfor(_ index: Int) -> DGItem
func didSelect(_ item: DGItem, atIndex index: Int)
For more reference See demo project