serp1412 / lazytransitions Goto Github PK
View Code? Open in Web Editor NEWLazy pop and dismiss like in the Facebook, Instagram or Twitter apps.
License: BSD 2-Clause "Simplified" License
Lazy pop and dismiss like in the Facebook, Instagram or Twitter apps.
License: BSD 2-Clause "Simplified" License
i try to fix it:
if fromVC.modalPresentationStyle == .fullScreen {
containerView.insertSubview(toVC.view, belowSubview: fromVC.view)
}
add it in the DismissAnimator.swfit
Hello,
I have tried with this code, it is really nice but facing one problem. The UI flickers when swipe to dismiss.
Same happening while tapping on button "Dismiss Demo" and try to swipe left to right to dismiss. The view sometime flickers.
Not sure where it goes wrong, Was checking how other library does it smooth like https://github.com/lkzhao/Hero
But not able to find better solution for it, I have found something in their code but not sure how it is working, here is the screenshot.
File: HeroTransition+Start.swift
Please let me know if required more info.
Thanks
Hiren
Hi there,
This library is really neat, I'm enjoying trying it out, but running into an issue that I can't seem to think of a way around. I'm attempting to achieve an effect like this. I'm trying to make LazyTransitioner and a UIPresentationController
work nicely together to achieve an effect like this.
I tried following the README's advice of doing this instead of forward the animator
and interactor
properties, but it's not working because of the situation below.
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
// ... pass the animator
return transitioner.animator
}
func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
// ... pass the interactor
return transitioner.interactor
}
But the problem is that I still need my own implementation of func animationController(forDismissed dismissed: UIViewController)
to properly dismiss.
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return MyCustomTransition(isReversed: true, duration: 0.4)
}
My suggestion would be to be able to pass in a custom UIPresentationController
which can be used in conjunction with the transitioner, though I'm a bit fuzzy on the implementation.
I would love to figure out if this is currently possible, and if not, find out if it's possible to add in the future.
Thanks a lot!
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.