I have facing issue to make ripples in Square and Stare figure like YRipple
Please help me and suggestion always welcome.
I have facing issue to make ripples in Square and Stare figure like YRipple
Please help me and suggestion always welcome.
Copyright © 2021 Jogjafile Inc.
One easy way to achieve this is to use
UIViewanimations. Each ripple is simply an instance ofUIView. The shape can then be simply defined, drawn in one of many ways. I am using the override ofdrawrect method:I used it in a view controller where I replaced main view with this ripple view in Storyboard.
I hope the code speaks for itself. It should be no problem to change colors. You could apply some rotation by using
transformon each ripple view...You could even use images instead of shapes. If image is set to be as templates you could even change colors using
tintproperty on image view... So limitless possibilities.