GithubHelp home page GithubHelp logo

palem1988 / swnavigationcontroller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cewendel/swnavigationcontroller

0.0 2.0 0.0 2.93 MB

A UINavigationController subclass and corresponding UINavigationControllerDelegate that provides drop-in support for edge-swiping left and right through a view hierarchy.

License: MIT License

Objective-C 97.00% Ruby 3.00%

swnavigationcontroller's Introduction

SWNavigationController

A UINavigationController subclass and corresponding UINavigationControllerDelegate that implements drop-in support for swiping left and right through a view hierarchy.

##Installation In your Podfile:

pod 'SWNavigationController' 

Or just close this repo and manually add the files from the PodFiles directory to your project

##Usage

To use SWNavigationController, simply change the type of the UINavigationController

  • Either in your Storyboard

  • Or programmatically in your AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    SWNavigationController *navController = [[SWNavigationController alloc] initWithRootViewController:rootViewController];
    
    [self.window setRootViewController:navController];
    
    return YES;
}

##Functionality

API

Interactive Push Gesture

@property (nonatomic, strong, readonly) UIGestureRecognizer *interactivePushGestureRecognizer;

SWNavigationController contains a interactive push gesture recognizer, which behaves opposite of UINavigationController's existing interactive pop gesture recognizer. When a view controller has been popped off the navigation stack it can be pulled back onto the top of the navigation stack by a right edge swipe.

The interactive push by default attempts to behave similarly to the built-in interactive pop.

Push Transition Class

@property (nonatomic, strong) Class pushAnimatedTransitioningClass;

pushAnimatedTransitioningClass can be set to override the default interactive push transition that is used by default by SWNavigationController when pulling from the right edge of the screen. This class must implement the protocol UIViewControllerAnimatedTransitioning.

Pop Transition Class

@property (nonatomic, strong) Class popAnimatedTransitioningClass;

popAnimatedTransitioningClass can be set to override UINavigationController's default interactive pop transition when pulling from the left edge of the screen. This class must implement the protocol UIViewControllerAnimatedTransitioning.

###Features

  • Easy drop-in creation using either Storyboards or programmatically
  • Default push transition that mimics UINavigationController's pop transition
  • Customizable push and pop transitions
  • Easily enable and disable pulling view controllers back onto the stack
  • iOS 7 and above

##Contributing Use Github issues to track bugs and feature requests.

##Contact

Chris Wendel

Licence

MIT

swnavigationcontroller's People

Contributors

cewendel avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.