Giter Club home page Giter Club logo

iossharedviewtransition's Introduction

iOSSharedViewTransition

iOS 7 based transition library for View Controllers having a Common View

  • Inspired by Shared View Activity Transitions introduced in Android L.

iOSSharedViewTransition

USAGE

Very Simple 3 Step Process:
  • Download and include ASFSharedViewTransition.h and ASFSharedViewTransition.m in your Project.
  • In your app delegate or somewhere else in code do #import "ASFSharedViewTransition.h" and add tansitions like this:
[ASFSharedViewTransition addTransitionWithFromViewControllerClass:[ViewController class]
        ToViewControllerClass:[DetailViewController class]
     WithNavigationController:(UINavigationController *)self.window.rootViewController
                 WithDuration:0.3f];

Note: Transition needs to be added only one time and ASFSharedViewTransition will automatically apply transitions whenever specified UINavigationController navigates between any FromViewController and ToViewController instances.

  • Confirm From & To View Controllers to ASFSharedViewTransitionDataSource and provide the Common View by implementing this method:
- (UIView *)sharedView

Thats it! A Sample Demo Application has been included for help.

Installation

iOSSharedViewTransition is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:

pod 'iOSSharedViewTransition', '~> 1.0.2'

Coming Soon

- Adding more transitions to the library - If you would like to request a new feature, feel free to raise as an issue.

Author

Asif Mujteba, [email protected]

License

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

iossharedviewtransition's People

Contributors

asifmujteba avatar jvitor avatar joaomolinari-verisoft avatar

Watchers

 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.