Coder Social home page Coder Social logo

vctransition's Introduction

#VCTransition The heart of this project is GITransition object, it adopts UIViewControllerAnimatedTransitioning and UIGestureRecognizerDelegate protocol, which allows you to have one view controller at the bottom, and on the same time keeping your main navigation separate. This was inspired by the iOS 8 emails implementation where you can have your new email open at the bottom while still viewing all your old emails above it.

#Demo Demo

#Example

    transitionManager = [[GITransition alloc] init];
    self.transitioningDelegate = transitionManager;
    
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    controller = [storyboard instantiateViewControllerWithIdentifier:@"vcAddNewGoal"];
    controller.transitioningDelegate = transitionManager;
    controller.modalPresentationStyle = UIModalPresentationCustom;
    controller.transitionManager = transitionManager;

- (IBAction)show:(id)sender {
    [self presentViewController:controller animated:YES completion:nil];
}

#Usage Copy GITransition folder into your project.

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

If you happen to meet one of the copyright holders in a bar you are obligated to buy them one pint of beer.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

vctransition's People

Stargazers

Said Rehouni avatar Eugene Drobov avatar Daniel Sadjadian avatar HAN SHANTAO avatar  avatar Igor Talov avatar Petr Syrov avatar Pavel avatar Xiong Ju avatar feng.zhang avatar Goutham avatar kiancheong avatar  avatar haley. avatar ddddddd avatar Dmitriy Demchenko avatar ADevTech avatar Huang avatar Jason avatar Aaron London avatar Vladislav Prusakov avatar  avatar  avatar  avatar Kirill Klebanov avatar  avatar Sam Spencer avatar Fernando Reynoso avatar Zadorozhnyj Dmitrij avatar Dmitriy Antyshev avatar  avatar Sangwon Kim avatar  avatar  avatar 晋先森 avatar Omar Ramírez avatar oli avatar C. Bess avatar Sakarn Limnitikarn avatar Marcilio Junior avatar  avatar  avatar har8ara avatar Said Rehouni avatar  avatar Erk Ekin avatar  avatar t3chnoBr4in avatar Vitaly Baev avatar Oscar Antonio Duran Grillo avatar Cyril Trosset avatar Taufik Obet avatar Josscii avatar Bruno Bilescky avatar Kevin Wolkober avatar Burak Yıldız avatar Zeeshan Mian avatar Lan Qingyong avatar Gurpartap Singh avatar Sally Ahmed avatar Serhat Sezer avatar Willi Wu avatar meng_xing_dong avatar Jayant Varma avatar Moonlight avatar MohsinAli avatar Dennis Zoma avatar Mukesh Mandora avatar woshizilong avatar Chris Anderson avatar Daniel Martyn avatar Carabineiro avatar  avatar Vasiliy avatar Pavel Rudkouski avatar Kirill Shalankin avatar  avatar

Watchers

t3chnoBr4in avatar James Cloos avatar MohsinAli avatar Valeriy Van avatar Carabineiro avatar Daleijn avatar

vctransition's Issues

Presenting a view controller above VCTransition controller causes parent view to slide up

Hi,

This is a great bit of code, makes for a much nicer view controller transition. The only problem I am having is that if I open a view controller with GITransition and then open another view controller on top of that, the GITransition view controller slides to the top (it doesn't stay at the ~80% y axis position that it originally opened to). For example:

You open a "settings" view controller with GITransition. The settings view has a few different buttons, one which includes a "Send Feedback" email button. When the button is pressed, it opens Apple's Mail composer view above the settings view. That's all fine, however when you then dismiss the main composer view, you notice that the settings view has been positioned higher than it was before - in other words it has moved up and is taking up the entire y axis (which is not where it was before the mail composer view was opened).

Is there anyway to fix this?

Thanks for your time, Dan.

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.