Skip to content

aakashtandukar/DGScrollableSegmentControl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

An elegant scrollable segment control.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%