To run the example project, clone the repo, and run pod install
from the Example directory first.
///MARK: push
PageManager.share.push("MainViewController", pushAnimator: .fade) { (target) in
target.setValue("Joy", forKey: "name")
}
///MARK: pop
PageManager.share.pop("pageName", true) { (target) in
target.setValue(true, forKey: "reloadData")
}
When you assign a value to the target view (target), use the setValue:forKey: method, and put the @objc keyword in front of the target parameter.
class MainViewController: UIViewController {
@objc var name: String?
override func viewDidLoad() {
super.viewDidLoad()
title = name
}
}
page-manager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'page-manager'
policp
My mail box, chenpengpoli@gmail.com
page-manager is available under the MIT license. See the LICENSE file for more info.