/SpaceShuttle

:rocket: A library manages Inter-View value passing

Primary LanguageObjective-CMIT LicenseMIT

SpaceShuttle Version Build Status MIT License Platform

A more easily way to passing values across views

SpaceShuttle gives you a more simple way to pass values across views.

It provides a extra parameter supplies for push pop dismiss present operation.


How To Get Started

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like DKNightVersion in your projects. See the Get Started section for more details.

Podfile

pod "SpaceShuttle", "~> 1.0.0"

Usage

Add one line of code to your precompiled header, or import it where you need.

#import "SpaceShuttle.h"

How to use

Push

[self.navigationController pushViewController:succViewController
                                    animated:YES
                                    supplies:@{@"test":@1}];

Pop

[self.navigationController popViewControllerAnimated:YES
                                            supplies:@{@"test": @1}];

Present

[self presentViewController:succViewController
                   animated:YES
                 completion:nil
                   supplies:@{@"test":@1}];

Dismiss

[self dismissViewControllerAnimated:YES
                         completion:nil
                           supplies:@{@"test":@1}];

Contribute

Feel free to open an issue or pull request, if you need help or there is a bug.

Contact

License

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

Todo

  • Documentation
  • More features