TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jan 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Stan.
Storyboard segues with closures
PrettySegue is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PrettySegue"
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
}
}
}
PrettySegue is available under the MIT license. See the LICENSE file for more info.