Latest 0.3
Homepage https://github.com/entotsu/TKSubmitTransition
License MIT
Platforms ios 8.0
Authors

Platform
Language
License
[CocoaPods]()

Swift2.0!! :cat:

Inpired by https://dribbble.com/shots/1945593-Login-Home-Screen

I created Animated UIButton of Loading Animation and Transition Animation.

As you can see in the GIF Animation Demo below, you can find the “Sign in” button rolling and after that, next UIViewController will fade-in.

I made them as classes and you can use it with ease.

Objective-C version is here.

Demo

Demo GIF Animation

Installation

pod 'TKSubmitTransition'
use_frameworks!

Usage

This is SubClass of UIButton

btn = TKTransitionSubmitButton(frame: CGRectMake(0, 0, 44, 44))

Animation Method

func didStartYourLoading() {
    btn.startLoadingAnimation()
}

func didFinishYourLoading() {
    btn.startFinishAnimation {
        //Your Transition
        let secondVC = SecondViewController()
        secondVC.transitioningDelegate = self
        self.presentViewController(secondVC, animated: true, completion: nil)
    }
}

TKFadeInAnimator

This Library also supply fade-in Animator Class of UIViewControllerAnimatedTransitioning.

Please use This for transition animation.

Usage

please use UIViewControllerTransitioningDelegate

class ViewController: UIViewController, UIViewControllerTransitioningDelegate {

secondVC.transitioningDelegate = self

// MARK: UIViewControllerTransitioningDelegate
func animationControllerForPresentedController(presented: UIViewController, presentingController presenting: UIViewController, sourceController source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
    let fadeInAnimator = TKFadeInAnimator()
    return fadeInAnimator
}
func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
    return nil
}

Latest podspec

{
    "name": "TKSubmitTransition",
    "version": "0.3",
    "summary": "Animated UIButton of Loading Animation and Transition Animation. Inspired by https://dribbble.com/shots/1945593-Login-Home-Screen",
    "homepage": "https://github.com/entotsu/TKSubmitTransition",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Takuya.Okamoto": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/entotsu/TKSubmitTransition.git",
        "tag": "0.3"
    },
    "source_files": [
        "Classes",
        "SubmitTransition/Classes/*.swift"
    ]
}

Pin It on Pinterest

Share This