Latest 0.2.9
Homepage https://github.com/MillmanY/MMTabBarAnimation
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Millman YANG/MMTabBarAnimation.svg?style=flat)](https://travis-ci.org/Millman YANG/MMTabBarAnimation)
Version
License
Platform

Demo

demo

Requirements

iOS 8.0+
Xcode 8.0+
Swift 3.0+

Use

1. Inherit MMTabBarAnimation on your TabBarController
    class BaseTabBarViewController: MMTabBarAnimateController {
    }

2. Set function
    // Default duration = 0.3
    public func setAnimateAllItem(animate: MMTabBarAnimation.ItemAnimateType, duration: TimeInterval)
    public func setAnimateAllItem(animate: MMTabBarAnimation.ItemAnimateType)
    public func setAnimate(index: Int, animate: MMTabBarAnimation.ItemAnimateType, duration: TimeInterval)
    public func setAnimate(index: Int, animate: MMTabBarAnimation.ItemAnimateType)
    public func setBadgeAnimate(index: Int, animate: MMTabBarAnimation.AnimateType)
    public func setAllBadgeAnimate(animate: MMTabBarAnimation.AnimateType)

3. Choose Animation Type

      public enum AnimateType {
        case scale(rate: Float)
        case jump
        case rotation(type: MMTabBarAnimation.RotationType) // .left .right .circle
        case shake
        case none // Disable Animation
      }

4. Choose Animation on which item

       public enum ItemAnimateType {
          case content(type: MMTabBarAnimation.AnimateType) // tabBarView
          case icon(type: MMTabBarAnimation.AnimateType)    // tabBarIcon
          case label(type: MMTabBarAnimation.AnimateType)   // tabBarTitleLabel
          case iconExpand(image: UIImage)                   // Expand Select Image with Animation (Dont Set selectImage on storyBoard)
       }

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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

pod 'MMTabBarAnimation'

Author

Millman YANG, [email protected]

License

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

Latest podspec

{
    "name": "MMTabBarAnimation",
    "version": "0.2.9",
    "summary": "Custom TabBar Animation",
    "description": "Custom Animation on tabBar Item",
    "homepage": "https://github.com/MillmanY/MMTabBarAnimation",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Millman YANG": "[email protected]"
    },
    "source": {
        "git": "https://github.com/MillmanY/MMTabBarAnimation.git",
        "tag": "0.2.9"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MMTabBarAnimation/Classes/**/*",
    "pushed_with_swift_version": "3.0-GM-CANDIDATE"
}

Pin It on Pinterest

Share This