TwicketSegmentedControl alternatives and similar libraries
Based on the "Switch" category.
Alternatively, view TwicketSegmentedControl alternatives based on common mentions on social networks and blogs.
-
HMSegmentedControl
A highly customizable drop-in replacement for UISegmentedControl. -
RAMPaperSwitch
:octocat: π RAMPaperSwitch is a Swift material design UI module which paints over the parent view when the switch is turned on. iOS library by @Ramotion -
BetterSegmentedControl
An easy to use, customizable replacement for UISegmentedControl & UISwitch. -
DGRunkeeperSwitch
Runkeeper design switch control -
SevenSwitch
iOS7 style drop in replacement for UISwitch -
AIFlatSwitch
Nicely animated flat design switch alternative to UISwitch -
SJFluidSegmentedControl
A segmented control with custom appearance and interactive animations. Written in Swift 3.0. -
TKSwitcherCollection
An animation switch collection -
PinterestSegment
A Pinterest-like segment control with masking animation. -
AKASegmentedControl
π« Fully customizable Segmented Control for iOS -
LUNSegmentedControl
Customizable segmented control with interactive animation. -
MultiSelectSegmentedControl
UISegmentedControl remake that supports selecting multiple segments, vertical stacking, combining text and images. -
JTMaterialSwitch
A Customizable Switch UI for iOS, Inspired from Google's Material Design -
ViralSwitch
A UISwitch that infects its superview with its tint color. -
DynamicMaskSegmentSwitch
A segment switcher with dynamic text mask effect -
AnimatedSwitch
UISwitch which paints over the parent view with the color in Swift. -
Switcher
Swift - Custom UISwitcher with animation when change status -
Switch
π An iOS switch control implemented in Swift with full Interface Builder support -
YUSegment
A customizable Segmented Control for iOS. Supports text and image.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of TwicketSegmentedControl or a related project?
README
TwicketSegmentedControl
Custom UISegmentedControl replacement for iOS, written in Swift, used in the Twicket app.
It handles the inertia of the movement, so you can βthrowβ the selector from one side to the other.
Take a look at the design by @dsaltaren on Dribbble
Features:
- Drag and Tap gesture
- Movement animation
- IB compatible
- Customizable colors
How to use it:
You can either create it using Interface Builder, or by code.
Whenever the segmented control is instantiated, you'll have to tell it which are going to be the segments it will have:
let titles = ["First", "Second", "Third"]
segmentedControl.setSegmentItems(titles)
Every time you use this function, the control is redrawn.
If you want to manually move to an index:
segmentedControl.move(to: 2)
Keep in mind that the first segment index is 0
To listen to changes on the selected index you just need to set yourself as delegate:
segmentedControl.delegate = self
And you'll get notified with the following interface:
func didSelect(_ segmentIndex: Int)
One last thing to mention, even if you set a different outer frame, its contentView height will always be 40
.
Customization:
You can customize the segmented control through the following properties:
defaultTextColor: UIColor - Text color for unselected segments
highlightTextColor: UIColor - Text color for selected segment
segmentsBackgroundColor: UIColor - Background color for unselected segments
sliderBackgroundColor: UIColor - Background color for selected segment
isSliderShadowHidden: Bool - Boolean to decide if the slider should have shadow
Installation:
β’ CocoaPods
use_frameworks!
pod 'TwicketSegmentedControl'
β’ Carthage
github "twicketapp/TwicketSegmentedControl"
β’ Manually
To manually add TwicketSegmentedControl
to your project you just need to copy the Source
folder files.