WCLShineButton 1.0.3

WCLShineButton 1.0.3

DocsDocumented
TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by WCL.


Downloads

Total235
Week28
Month204

Installs

Apps35
Apps WeekApps This Week 10
Test Targets3
Test WeekTests This week 1
powered by Segment

GitHub

Stars750
Watchers8
Forks42
Issues0
Contributors1
Pull Requests0

Code

Files6
SizeIntegration Size 56 kb
LOCLines of Code 426


  • By
  • W_C__L

WCLShineButton

 

This is a UI lib for iOS. Effects like shining.

cn Chinese (Simplified):

中文说明

博客介绍

Usage

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)

Complex Usage

Property Description
color Default button color
fillColor Fill button color
allowRandomColor Allow shine color random
animDuration shine anim duration
bigShineColor big shine color
enableFlashing Enable effect like flash
shineCount shine count around button
shineTurnAngle turn angle of shine
shineDistanceMultiple multiple of distance to button
smallShineOffsetAngle angle offset of small shine to big shine
smallShineColor small shine color
shineSize size of shine by pixel
colorRandom shine color random
image button image (png)

Contacts

blog

CSDN

Code Reference

ShineButton

License

WCLShineButton is released under the MIT license. See LICENSE for details.