/page-manager

Primary LanguageSwiftMIT LicenseMIT

page-manager

CI Status Version License Platform

Example

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

Basic Examples

use push

///MARK: push   
PageManager.share.push("MainViewController", pushAnimator: .fade) { (target) in
            target.setValue("Joy", forKey: "name")
        }

use pop

///MARK: pop
PageManager.share.pop("pageName", true) { (target) in
            target.setValue(true, forKey: "reloadData")
        }

Warning

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
    }
}

Screenshots

avatar

Installation

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

pod 'page-manager'

Author

policp

My mail box, chenpengpoli@gmail.com

License

page-manager is available under the MIT license. See the LICENSE file for more info.