Sorry, I was not notified about your comment and I have just seen it now.
You didn't produce the same effect at all.
With my code, your toggle would still be grey in light mode and become green only where the circle shape is already overlaying it.
It might not be that obvious but if you look closely to the GIF at the top of the article, the text doesn't transition to white entirely in one go but only the parts where the ripple as already reached it are white and the other parts are still black.
I'm not sure I'm making myself completely clear but feel free to ask if that is not the case
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why all that Unnecessary complexity? I've created the same effect in a much more simple implementation
Produces the following Result:
Also, it can be easily extended to change the colors of system bars (status bar & navigation bar)
Sorry, I was not notified about your comment and I have just seen it now.
You didn't produce the same effect at all.
With my code, your toggle would still be grey in light mode and become green only where the circle shape is already overlaying it.
It might not be that obvious but if you look closely to the GIF at the top of the article, the text doesn't transition to white entirely in one go but only the parts where the ripple as already reached it are white and the other parts are still black.
I'm not sure I'm making myself completely clear but feel free to ask if that is not the case