All Projects → sarunw → Swsegmentedcontrol

sarunw / Swsegmentedcontrol

Licence: mit
A Android-like tab bar, drop-in replacement for UISegmentedControl.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Swsegmentedcontrol

Lctabbarcontroller
A amazing and highly customized tabBarController! You could almost customize 100% properties with LCTabBarController!
Stars: ✭ 384 (+233.91%)
Mutual labels:  tabbar
Cyltabbarcontroller
[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
Stars: ✭ 6,605 (+5643.48%)
Mutual labels:  tabbar
Rn Collapsing Tab Bar
Collapsing header with tabs for react native
Stars: ✭ 71 (-38.26%)
Mutual labels:  tabbar
Officialfoldingtabbar.android
Stars: ✭ 434 (+277.39%)
Mutual labels:  tabbar
Foldingtabbar.android
[DEPRECATED] Folding Tabbar menu for Android. This is a menu library.You can easily add a nice animated tab menu to your app.
Stars: ✭ 486 (+322.61%)
Mutual labels:  tabbar
Swipeabletabbarcontroller
UITabBarController with swipe interaction between its tabs.
Stars: ✭ 919 (+699.13%)
Mutual labels:  tabbar
KBCustomCenterTabbar
利用系统的tabbar定义类似于掌上生活的中间按钮凸起的tabbar, 实现起来简单, 代码简便,, 希望能帮到你
Stars: ✭ 42 (-63.48%)
Mutual labels:  tabbar
Sscustombottomnavigation
Animated tabbar with native control
Stars: ✭ 98 (-14.78%)
Mutual labels:  tabbar
Transitionabletab
TransitionableTab makes it easy to animate when switching between tab.
Stars: ✭ 740 (+543.48%)
Mutual labels:  tabbar
Weapp Component Tabbar
微信小程序自定义组件:带未读数目的tab按钮
Stars: ✭ 56 (-51.3%)
Mutual labels:  tabbar
React Native Tabbar Interaction
Tabbar Component For React-Native
Stars: ✭ 457 (+297.39%)
Mutual labels:  tabbar
Estabbarcontroller
ESTabBarController is developed and maintained by Vincent Li. If you have any questions or issues in using ESTabBarController, welcome to issue. If you want to contribute to ESTabBarController, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 4,649 (+3942.61%)
Mutual labels:  tabbar
Superbadges
Emoji Tab Bar button badges ✨
Stars: ✭ 47 (-59.13%)
Mutual labels:  tabbar
Sotabbar
Light way to add Fancy bottom bar 📲
Stars: ✭ 400 (+247.83%)
Mutual labels:  tabbar
Fwsidemenu
侧滑控件:支持左、右滑动的侧滑菜单,可配置单侧滑动,同时可配置菜单宽度等,更多配置请参考”可设置参数“。参考了QQ用户体验:支持边缘侧滑,解决手势冲突问题(边缘范围可设置)。提供OC使用Demo。
Stars: ✭ 90 (-21.74%)
Mutual labels:  tabbar
Foldingtabbar.ios
Folding Tab Bar and Tab Bar Controller
Stars: ✭ 3,677 (+3097.39%)
Mutual labels:  tabbar
React Native Animated Tabbar
A 60FPS animated tab bar with a variety of cool animation presets 😎
Stars: ✭ 890 (+673.91%)
Mutual labels:  tabbar
Tabbar
🔥空祖家的导航栏工具
Stars: ✭ 100 (-13.04%)
Mutual labels:  tabbar
Dgfloldabletabbarcontrol
An elegant foldable tabbar control.
Stars: ✭ 91 (-20.87%)
Mutual labels:  tabbar
Tap water
【声明:未发布前,勿使用,勿star,预计2020年11月底发布】Flutter tab_bar组件,支持中间带加号按钮的TabBar,支持Lottie动画。iTeaTime(技术清谈)团队出品。Highly customizable tabBar and tabBarController for Flutter
Stars: ✭ 52 (-54.78%)
Mutual labels:  tabbar

SWSegmentedControl

A Android-like tab bar, drop-in replacement for UISegmentedControl written in Swift.

Live Demo

Requirements

Requires iOS 8.0 and ARC.

Installation

SWSegmentedControl is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SWSegmentedControl"

Usage

SWSegmentedControl can only be init in code due to the limitation of @IBDesignable which can't generate array of item like what UISegmentedControl can do, but I make it renderable anyway just in case you want to play around with it.

Basic usage

let sc = SWSegmentedControl(items: ["A", "B", "C"])
sc.frame = CGRect(x: 0, y: 0, width: 300, height: 44)
sc.selectedSegmentIndex = 2 // default to 0

Change segment programmatically

Setting property directly will change segment without animation

sc.selectedSegmentIndex = 1

If you want fine-grain control over animation, you can use setSelectedSegmentIndex(index: Int, animated: Bool

sc.setSelectedSegmentIndex(1, animated: true)

Customization

By default both text and indicator color are the same with tintColor. If you want to change theme independently you can use titleColor and indicatorColor and you can also change font by set font.

Author

Sarun Wongpatcharapakorn ([email protected]) Twitter: @sarunw

License

SWSegmentedControl is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].