Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small dot comes after ripple effect completed #21

Open
rahulbbit opened this issue Jan 8, 2020 · 6 comments
Open

small dot comes after ripple effect completed #21

rahulbbit opened this issue Jan 8, 2020 · 6 comments

Comments

@rahulbbit
Copy link

ezgif com-video-to-gif (1)
This is a strange issue i am facing, after the ripple effect there comes a smaller dot.

@pnzr00t
Copy link

pnzr00t commented Mar 5, 2021

ezgif com-video-to-gif (1)
This is a strange issue i am facing, after the ripple effect there comes a smaller dot.

Have same problem. Do you solve it? Can you write what you do

@Alipacman
Copy link

I also need resolution for this issue :( On simulator and on some devices it seems to work tho.

@pnzr00t
Copy link

pnzr00t commented Mar 23, 2021

IPhone SE emulator

I found that this bug appear when some one interrupt out animation.

For example, animation duration is 1 second, and new VC opened at 0.5 second, then animation ripple animation stopped, and you can see beginning layer, with this dot

@Alipacman
Copy link

IPhone SE emulator

I found that this bug appear when some one interrupt out animation.

For example, animation duration is 1 second, and new VC opened at 0.5 second, then animation ripple animation stopped, and you can see beginning layer, with this dot

Awesome! That's perfect, now I can adjust my code, thank you very much!

@pnzr00t
Copy link

pnzr00t commented Mar 23, 2021

Sorry can't post all my modify code, 4k NDA ...

Look
fade.duration
animation.duration
and at the end of function beginTracking func

        aLayer.add(animGroup, forKey: "scale")

        DispatchQueue.main.asyncAfter(deadline: .now() + MILISECONDS_OF_ANIMATION) { [aLayer] in
            aLayer.removeAllAnimations() // it's same as animationDidStop, but call when animation fully played
        }

It's hack but work for me

@mixdesign
Copy link
Contributor

mixdesign commented Nov 27, 2022

@pnzr00t Hi, thanks. But, it doesn't work for me.

My workaround is just set aLayer.opacity = 0, because something causes ripple layer come to initial state again :), so changing the initial state to be transparent solves an issue 😁

Sajda – PMSuperButton swift 2022-11-27 23-01-46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants