Latest 1.0.0
Homepage https://github.com/huxiaoluder/DoveKit
License MIT
Platforms ios 9.0
Authors

DoveKit Logo

Build Status
Version
License
Platform

Example

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

Requirements

Only support Swift project, because Swift enumorate is not useful in Objective-C project.

Usage

  • How to use animations

    DoveKit provide some animations for you, and more and more animations will update in the future,
    Enumorater define animation type, you only set the "DVTransitionAnimation.value" to your ViewController,
    If you want animation by yourself, you can use the "DVTransitionAnimation.custom(...)" to define custom animation
  • TabbarController transition

    // if you want to use TabbarController transition with DoveKit, must call func UITabBarController(useDove:, base:)
    let tabBarVC = UITabBarController(useDove: true, base: .currentAnimation)
    
    // if you want to use NavigationController transition with DoveKit, must call func UINavigationController(useDove:, rootViewController:)
    let nav1 = UINavigationController(useDove: true, rootViewController: transitionVC)
    transitionNav.tabBarTransitionAnimation = DVTransitionAnimation.?
    
    let nav2 = UINavigationController(useDove: true, rootViewController: pushVC)
    pushNav.tabBarTransitionAnimation = DVTransitionAnimation.?
    
    let nav3 = UINavigationController(useDove: true, rootViewController: modalVC)
    modalNav.tabBarTransitionAnimation = DVTransitionAnimation.?
  • NavigationController transition

    // if you want push some viewcontroller with DoveKit, use current viewcontroller.navigationTransitionAnimation.
    // note: nav must be instanced by DoveKit, otherwise it's invalid.
    let vc = UIViewContrller()
    navigationTransitionAnimation = DVTransitionAnimation.?
    navigationController.pushViewController(vc, animated: true)
  • PresentController trasnition

    // if you want present some viewcontroller with DoveKit, instance a viewcontroller by func UIViewController(useDove:) and use viewcontroller.presentTransitionAnimation
    let vc = UIViewController(useDove: true)
    vc.presentTransitionAnimation = DVTransitionAnimation.?
    present(vc, animated: true, completion: nil)

Installation

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

pod 'DoveKit'

Author

xiaoming, [email protected]

License

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

Latest podspec

{
    "name": "DoveKit",
    "version": "1.0.0",
    "summary": "A transition aniamtion provider for iOS ViewController",
    "description": "You can use a convenience transition aniamtion provider in your development,nalso can easily customize the transition animation by yourself",
    "homepage": "https://github.com/huxiaoluder/DoveKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "xiaoming": "[email protected]"
    },
    "source": {
        "git": "https://github.com/huxiaoluder/DoveKit.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.2",
    "source_files": "DoveKit/Classes/**/*"
}

Pin It on Pinterest

Share This