gitmyhub

animated-tab-bar

Swift ★ 11k updated 4y ago

:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion

A Swift library for iOS that adds bounce, rotate, and flip animations to tab bar icons when a user taps them, easy to swap in for the standard iOS tab bar.

SwiftiOSCocoaPodsCarthageSwift Package Managersetup: easycomplexity 2/5

Animated Tab Bar is a Swift library for iOS that adds motion effects to the icons and labels in a standard tab bar, the row of navigation buttons typically found at the bottom of an iPhone app. Instead of a static tap with no visual response, each tab can bounce, rotate, flip, or play another animation when a user selects it. The library was made by Ramotion, a design and app development agency.

To use it, you replace the standard iOS tab bar controller class with the library's version inside Xcode's visual editor, then assign the library's item class to each tab. From there, you connect an animation class to each tab item. The library ships with nine ready-made animations covering bouncing, left and right rotations, and several flip directions. Adding a custom animation is also supported: you create a class that extends the base animation type and fill in three methods describing what happens when a tab is selected, deselected, or first loaded.

Installation follows standard iOS tooling. You can drag the source folder directly into your project, install through CocoaPods with one line in a Podfile, use Carthage, or add it through Swift Package Manager. The library requires iOS 9 or newer and Xcode 10.2.

The license is MIT, meaning the code is free to use in personal and commercial projects. The README asks that users credit Ramotion and link back to their website when using the library in a project. Ramotion also offers a showroom app on the App Store where you can try this component alongside others they have released.

Where it fits