WCLShineButton – Swift UI Component For Creating Buttons With Customizable Animated Effects On Press

WCLShineButton is an open source Swift UI component allowing you to easily create buttons with interesting animated effects on press.

With WCLShineButton you can create animated shine effects with flashing, image based particles, colors,and fully customize the actual effects.

This snippet from the readme shows how to create a custom button with WCLShineButton:

var param1 = WCLShineParams()
param1.bigShineColor = UIColor(rgb: (153,152,38))
param1.smallShineColor = UIColor(rgb: (102,102,102))
let bt1 = WCLShineButton(frame: .init(x: 100, y: 100, width: 60, height: 60), params: param1)
bt1.fillColor = UIColor(rgb: (153,152,38))
bt1.color = UIColor(rgb: (170,170,170))
bt1.addTarget(self, action: #selector(action), for: .touchUpInside)
view.addSubview(bt1)

This animation from the readme shows WCLShineButton in action:

WCLShineButton

You can find WCLShineButton on Github here.

A nice component for adding effects to iOS buttons.

Original article: WCLShineButton – Swift UI Component For Creating Buttons With Customizable Animated Effects On Press

©2017 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *