ShadyElyaski / ios-filter-control

An iOS Filter UIControl Subclass. Zero Graphics. Highly Customizable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use with Swift

kandarpesw opened this issue · comments

commented

Please guide me to use this in my swift project.

Just Install --> pod install
take the instance of SEFilterControl Class
like this --> let sefilter = SEFilterControl()
set the frame as you want --> sefilter.frame = CGRect(x: 0, y: 80, width: UIScreen.main.bounds.width, height: 50)
set the segment title like this --> sefilter.setTitles(["1KM","5KM","10KM","25Km"])
set the segment text color --> sefilter.titlesColor = UIColor.white
add SEFilterControl to your view --> self.view.addSubview(sefilter)

cheers