Animation, Effects & Transitions for iOS projects.
This package contains UI components with a custom feel to it.
- RippleButtonStyle
- SwiftUI
- Swift
![Screenshot](Screenshot 2021-03-12 at 6.41.40 PM.png)
The project is built supporting iOS 13 and above
Button(action: { }) {
Text("This is ripple button")
.frame(width: 200, height: 15, alignment: .center)
}
.buttonStyle(RippleButtonStyle(with: .primeblue))
or simply create a button and add this as one of its modifiers -
.buttonStyle(RippleButtonStyle(with: <insert Color>))
This has multiple properties to use.
var color: Color
var lightColor: Color
var shadowColor: Color
var isInternalGradientPresent: Bool
-
Color- This is a mandatory parameter. This is the color for the button.
-
lightColor- is the color of light source. Default value = Color.white
-
shadowColor- as the name suggests is the shadow color. Default value = Color.black
-
isInternalGradientPresent- This is a boolean flag which toggles the internal color gradient for inner shadows.
- If you are having trouble with this project or if you find any bugs, do open a new issue and describe the problem.
- Alternatively, you can drop me a mail @ [email protected].
Liked the project? Just give it a star ⭐️ and spread the word!
© Manas Aggarwal | 2021