PMSuperButton icon indicating copy to clipboard operation
PMSuperButton copied to clipboard

small dot comes after ripple effect completed

Open rahulbbit opened this issue 5 years ago • 6 comments

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

rahulbbit avatar Jan 08 '20 11:01 rahulbbit

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

pnzr00t avatar Mar 05 '21 15:03 pnzr00t

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

Alipacman avatar Mar 22 '21 14:03 Alipacman

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

pnzr00t avatar Mar 23 '21 12:03 pnzr00t

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!

Alipacman avatar Mar 23 '21 12:03 Alipacman

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

pnzr00t avatar Mar 23 '21 12:03 pnzr00t

@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

mixdesign avatar Nov 27 '22 17:11 mixdesign