WaveTab
WaveTab copied to clipboard
๐๐ A Wave-like UITabBarController ๐๐
๐ค About
WaveTab is a UITabBarController
that acts like a wave when moving between tabs. It works everywhere you'd expect it to, rotates, and scales according to device. It was inspired by a plat4m design. Please see below for a small screen recording of it in action.
๐ Demo
To run the example project, clone the repo, and run pod install
from the Example directory first.
๐ฒ Installation
WaveTab is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'WaveTab'
and run pod install
โ Requirements
- Swift 4.2
- iOS 10.0
๐ฉโ๐ป How to use
WaveTab can be used both programmatically and through storyboards. To use it programmatically, simply replace UITabBarController
with WaveTabBarController
and it'll handle the rest. For usage in storyboards, just set your class of the selected UITabBarController
to be a WaveTabBarController
.
If you inherit from the WaveTabBarController
and call func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem)
, you must call to the super
class.
๐จโ๐ฉโ๐งโ๐ฆ Contributing
If you run into any problems, please submit an issue. Pull requests are also welcome! By contributing to WaveTab you agree that your contributions will be licensed under its MIT license.
If you use WaveTab in your app I'd love to hear from you on Twitter!
๐โโ๏ธ Author
WaveTab was created by Matthew Pierce (@PierceMatthew)
๐ License
WaveTab is available under the MIT license. See the LICENSE file for more info.