mralek / awpercentdriveninteractivetransition Goto Github PK
View Code? Open in Web Editor NEWA drop-in replacement for UIPercentDrivenInteractiveTransition for use in custom container view controllers.
License: MIT License
A drop-in replacement for UIPercentDrivenInteractiveTransition for use in custom container view controllers.
License: MIT License
flashing (flickering) occurs when canceling animation (returning to current view controller),
something like showing next view controller for milliseconds - and then hide it
How it can be prevented?
thaks
It seems that completionCurve
in ignored in the current implementation (it always seems to uses a linear curve when completing the transition animation). It'd be nice if we could use the easy in out curve for completion (while keeping the linear one when interacting with the transition).
How can gesture for going to next view controller be initialized without waiting for [finishInteractiveTransition] end (to mimic the functionality of UIPageViewController changing child items)
I ported the project to Swift here. I am about to integrate it into my project, and start testing.
Since I thought it doesn't make sense to have two implementations, I decided to remove the ObjC stuff. I suggest, if you like, to merge this into a new branch.
Since the animation controller is unaware of being wrapped in AWPercentDrivenInteractiveTransition
, it will always call completeTransition:YES
to its transition context, even when the transition is cancelled and the animation is reversed. This can cause issues in certain contexts.
completeTransition:
on the context and catch up when called by the animator. Of course, swizzle back to original implementation once transition is over.AWPercentDrivenInteractiveTransition
call completeTransition:NO
itself. It would be run several times though :/A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.