Latest 0.1.0
Homepage https://github.com/ipagong/PGEZTransition
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

it’s viewcontroller transitioning with protocol.

you need to use views that realized the protocol. (PGTransformal)

Requirements

above

  • swift 4.0
  • xCode 9.3

Installation

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

pod 'PGEZTransition'

How to Use

  1. Setup views on interfacebuild (or programatically)

ViewSetup

  1. Setup custom class at "inspector" (if you use UILabel, use PGTransformLabel)

ViewSetup

  1. Setup transform value & alpha
class IntroSecondController: UIViewController {

    //connect IBOutlet
    @IBOutlet weak var titleTop: PGTransformLabel!

    override func viewDidLoad() {
        super.viewDidLoad()

        // Setup view transform.
        titleTop
            .setStartTransform(.y(15), start: 0.3, duration: 0.4)
            .setStartAlpha(0.0, start: 0.2, duration: 0.4)
            .setEndTransform(.zero, start: 0.0, duration: 1.0)
            .setEndAlpha(1.0, start: 0.0, duration: 1.0)

        ...
    }
}
  1. Connect Each ViewController ( target vc < – > will present vc )

class IntroFirstController: UIViewController {
    //Animator
    private var transition:PGTransformTransition!

    //next view controller 
    private lazy var nextVc:IntroSecondController = {
        return UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "IntroSecondController") as! IntroSecondController
    } ()

    override func viewDidLoad() {
        super.viewDidLoad()

        //setup
        self.transition = PGTransformTransition(target: self, presenting: self.nextVc)
    }
}

Demo

PGEZTransition Preview

appetize.io demo : [ here ]

Author

suwan.park, [email protected]

License

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

Latest podspec

{
    "name": "PGEZTransition",
    "version": "0.1.0",
    "summary": "Easy Transform Transition.",
    "description": "You can set an animation for each "view" that works in the ViewController Transition.",
    "homepage": "https://github.com/ipagong/PGEZTransition",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ipagong": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ipagong/PGEZTransition.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PGEZTransition/Classes/**/*"
}

Pin It on Pinterest

Share This