11# ButtonClickStyle
22
3- ## Preview
43![ image] ( https://github.com/mrustaa/GifPresentations/blob/master/ButtonClickStyle/all_ipad_random.gif )
54
6- Это слой кнопка
7- которая имеет 9 стилей анимированного нажатия
5+ This is a layer button
6+ Has 9 styles of animated click
87
9- Внутри Слоя
10- можно создавать свои собственные кнопки
11- subviews - с вложенные вьюхами
8+ Inside the layer you can style your button, create your own subviews
129
13- + Можно расширять проект
14- добавляя новые стили-анимации-нажатия
10+ + You can expand the project
11+ adding new click-animation-styles
1512
1613## Requirements
1714
@@ -21,35 +18,32 @@ Swift 5.5+
2118
2219## Installation
2320
24-
2521## Usage
2622
2723#### С storyboard или xib
2824
29- 1 ) Создайте вьюшку, которая наследуется ` ButtonClickStyleView `
25+ 1 ) Create a "view" that inherits from ` ButtonClickStyleView `
3026
31- <!-- You can now style your button (Теперь вы можете стилизовать свою кнопку )-->
32- 2 ) Внутри этого слоя, создавайте свою собственную кнопку из других слоев
27+ 2 ) Inside this layer, create your own button
3328
34- 3 ) В атрибутых инспектора (` Attributes Inspector ` of ` Interface Builder ` )а
35- вы можете сразу выбрать тип анимации нажатия кнопки ` animationType `
36-
37- Пока 9 стилей анимированного нажатия
29+ 3 ) In Attributes Inspector of Interface Builder
30+ you can immediately select the button click ` animationType `
3831``` swift
3932#type #name
4033
41- " Hide .Alpha"
42- " Hide .Flash (more)"
43- " Add .Shadow"
44- " Add .Color"
45- " Add .ColorFlat (border text)"
46- " Move .Pulsate (new)"
47- " Move .Pulsate"
48- " Move .Press"
49- " Move .Shake (new)"
50- " Move .Shake"
51- " Add .AndroidClickable (dark)"
52- " Add .AndroidClickable (ligth)"
34+ hide .alpha
35+ hide .flash
36+ add .shadow
37+ add .shadow color
38+ add .color
39+ add .color flat (border text)
40+ move .pulsate new
41+ move .pulsate
42+ move .press
43+ move .shake new
44+ move .shake
45+ add .androidClickable dark
46+ add .androidClickable ligt
5347```
5448
55494 ) Так же вы можете выбрать анимировать все слои ` allSubviews ` / или только 1
0 commit comments