1010
1111![ image] ( https://github.com/mrustaa/GifPresentations/blob/master/ButtonClickStyle/preview_10sec33fps.gif )
1212
13- - This is a customizable designable button view/leayr .
13+ - This is a customizable designable button view/layer .
1414- Inside the layer you can style your button, create your own subviews.
1515- Can choose 1 of 15 button click animation styles.
1616- You can expand the project adding new click-animation-styles.
@@ -72,12 +72,13 @@ extension ButtonClick {
7272
73735 ) Add animation duration ` animationDuration `
7474
75- 6 ) Add animation value ` animationTypeValue ` - meaning means
76- - "Hide .Alpha/.Flash" - will change alpha from 0.0 to 1.0
77- - "Add .Shadow/.Color/.ColorFlat"
78- - "Move .Pulsate/.Press/.Shake" - will increase movement decrease from 0.0 to 1.0
75+ 6 ) Add animation value ` animationTypeValue ` - meaning means for some types - alpha or power
76+
77+ - "Hide .Alpha/.Flash" - will change alpha for "self.view" from 0.0 to 1.0
78+ - "Add .Shadow/.Color/.ColorFlat" - will change alpha for "add.view" from 0.0 to 1.0
79+ - "Move .Pulsate/.Press/.Shake" - will change the strength of movement for "self.view" from 0.0 to 1.0
7980- "TapGesture .Fave/.AndroidClickable" - will increase bubble radius
80- - "Loading .Glare" -
81+ - "Loading .Glare" - no change
8182
8283<!--  -->
8384
@@ -93,14 +94,16 @@ import UIKit
9394
9495class ViewController : UIViewController {
9596
97+ // MARK: Init Xib/Storyboards
98+
9699 @IBOutlet var xibButtonClickStyleView: ButtonClickStyleView?
97100
101+ // MARK: Init Programmaticaly
102+
98103 var prgmButtonClickStyleView: ButtonClickStyleView?
99104 var prgmFigureView: UIView!
100105 var prgmRectangleView: UIView!
101106
102- // MARK: - Create Programmaticaly
103-
104107 override func viewDidLoad () {
105108 super .viewDidLoad ()
106109
0 commit comments