Skip to content

Very customizable minimalist-style UIControl for iOS. Written entirely in swift

Notifications You must be signed in to change notification settings

mack/custom-seg-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CustomSegmentedController

A customizable UIControl

Very easy set up... Define what items you'd like to have in the controller

EVSCustomSegmentedController.items = ["ITEM1", "ITEM2", "ITEM3"]

Then simply add a IBAction for value changed (like you would with a normal segmented controller), check what the selectedIndex is and voila!

    @IBAction func update(sender: EVSCustomSegmentedController) {
        if sender.selectedIndex == 0 {
        // Do something
        } else {
        // Do something else
        }
    }

Preview

Preview of segmented controller

About

Very customizable minimalist-style UIControl for iOS. Written entirely in swift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages