Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

WTSegmentView

An animated two Segment View for UIViewController.

Demo

Usage

let segmentAnimationView = WTSegmentAnimationView(colors: [CAConstants.CAColors.primaryColor, CAConstants.CAColors.secondaryColor], titles: ["Login","Signup"], textColor: UIColor.white, textFont: UIFont(name: "HelveticaNeue-Bold", size: 20.0)!)

self.view.addSubView(segmentAnimationView)

Delegate

for tracking the change of segment , conform the WTSegmentAnimationViewDelegate to your ViewController and implement the method didTapSegmentAtIndex(index: Int)

segmentAnimationView.delegate = self

func didTapSegmentAtIndex(index: Int) { self.updateView() }

Installation

Just drag the WTSegmentAnimationView.swift class in your project and you are ready to go ;)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages