Skip to content

brunodlz/Transaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transaction

Using Transaction, you will handle the flow between your segues much easier.

Add the following to your Podfile:

pod 'Transaction'

You will also need to make sure you're opting into using frameworks:

use_frameworks!

Then run pod install

Swift Version

Use the table below to determine which versions of Transaction are compatible with your project.

Swift version Transaction version
Swift 3 v1.0.1 or later
Swift 2.2 / Swift 2.3 v1.0.0

Usage

import Transaction
override func viewDidLoad() {
        super.viewDidLoad()

        performSegue(withIdentifier: Segue.First.rawValue, sender: nil)
    }
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        if segue.identifier == Segue.First.rawValue {
            animation.startOn(current: self, 
                              destination: segue.destination, 
                              animation: .transitionFlipFromRight)
        } else if segue.identifier == Segue.Second.rawValue {
            animation.startOn(current: self, 
                              destination: segue.destination, 
                              animation: .transitionFlipFromLeft)
        }
    }

Demo

  • Storyboard
  • ViewCode

Support

Please, don't hesitate to file an issue if you have questions.

Author

Bruno da Luz. :octocat: GitHub 🐦 Twitter

License

This project is distributed under the MIT License

About

Framework to transaction between segue

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors