Skip to content

wasi166/WTSegmentView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages