PulseAnimation

Apache 2.0 License
Swift
iOS

7 images

Author

Description

Pulse Button Animation with SwiftUI

I have created PJRPulseButton which will generate a pulse animation for the button. Provided an example as well. It is very simple, you can use PJRPulseButton file in any class just like PJRPulseButton(). It will create a default button animation with plus button image.

https://user-images.githubusercontent.com/5228713/112018520-a6fc5300-8b54-11eb-90ac-fd66d751a98e.mov

You can customize it with different colors, image, animation duration, button size and number of outer circles.

Example: PJRPulseButton(color: Color.red, systemImageName: "heart.circle.fill", buttonWidth: 48, numberOfOuterCircles: 2, animationDuration: 1)

Tags