Skip to content

shomishinec/PrettySegue

Repository files navigation

PrettySegue

Storyboard segues with closures

BuddyBuild Version License Platform

Requirements

  • iOS 8.0+
  • Xcode 8.2.1 +
  • Swift 3.0+

Installation

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

pod "PrettySegue"

Usage

If you create a segue in storyboard named "area", you can perfrom the segue like this:

import PrettySegue

class ViewController: UIViewController {

    // basic
    @IBAction func onBtnA(sender: AnyObject) {
       performSegue(withIdentifier: "area", sender: self) { (areaVC: AreaViewController) in
			    areaVC.height = 10
			    areaVC.width = 10
		  }
    }
}

License

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