Skip to content

Commit caa4fc1

Browse files
committed
Update 1.1.1
1 parent 4377bda commit caa4fc1

32 files changed

+81
-121
lines changed

ButtonClickStyle.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'ButtonClickStyle'
11-
s.version = '1.1.0'
11+
s.version = '1.1.1'
1212
s.summary = 'This is a customizable designable button view. Inside layer you can style button, create your own subviews. Choose 15 click animation styles'
1313

1414
# This description is used to generate tags and improve search results.

Example/ButtonClickStyle.xcodeproj/project.pbxproj

Lines changed: 46 additions & 70 deletions
Large diffs are not rendered by default.

Example/ButtonClickStyle/ButtonClickStyle+Buttons.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -176,22 +176,6 @@ extension ButtonClick {
176176
]
177177

178178
public static var shortNames: [String] = ButtonClick.Buttons.allCases.map { $0.rawValue }
179-
// public static var shortCases: [ButtonClick.Buttons] = [
180-
// .JustPink,
181-
// .NoShadow,
182-
// .Blue,
183-
// .BuyNow,
184-
// .Download,
185-
// .Delete,
186-
// .Search,
187-
// .Subscribe,
188-
// .Firefox,
189-
// .Google,
190-
// .GrButton,
191-
// .Neomorphism,
192-
// .TestButton,
193-
// .Green,
194-
// ]
195179
}
196180
}
197181

Example/ButtonClickStyle/UI/Button/Blue/BlueButtonView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class BlueButtonView: BtnView {
3535
viewAn.widthAnchor.constraint(equalToConstant: fr.width).isActive = true
3636
viewAn.heightAnchor.constraint(equalToConstant: fr.height).isActive = true
3737

38-
self.animation?.removeFromSuperview()
39-
self.animation = viewAn
38+
self.btnClickStyleView?.removeFromSuperview()
39+
self.btnClickStyleView = viewAn
4040

4141

4242
var frr = mainView.frame;frr.origin = .zero;mainView.frame = frr

Example/ButtonClickStyle/UI/Button/BorderGreenDark/BorderGreenDarkButtonView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class BorderGreenDarkButtonView: BtnView {
4646
viewAn.widthAnchor.constraint(equalToConstant: fr.width).isActive = true
4747
viewAn.heightAnchor.constraint(equalToConstant: fr.height).isActive = true
4848

49-
self.animation?.removeFromSuperview()
50-
self.animation = viewAn
49+
self.btnClickStyleView?.removeFromSuperview()
50+
self.btnClickStyleView = viewAn
5151
var frr = mainView.frame;frr.origin = .zero;mainView.frame = frr
5252
}
5353

Example/ButtonClickStyle/UI/Button/BuyNow/BuyNowButtonView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class BuyNowButtonView: BtnView {
3939
viewAn.widthAnchor.constraint(equalToConstant: fr.width).isActive = true
4040
viewAn.heightAnchor.constraint(equalToConstant: fr.height).isActive = true
4141

42-
self.animation?.removeFromSuperview()
43-
self.animation = viewAn
42+
self.btnClickStyleView?.removeFromSuperview()
43+
self.btnClickStyleView = viewAn
4444
var frr = mainView.frame;frr.origin = .zero;mainView.frame = frr
4545
}
4646

Example/ButtonClickStyle/UI/Button/Delete/DeleteButtonView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class DeleteButtonView: BtnView {
3535
viewAn.widthAnchor.constraint(equalToConstant: fr.width).isActive = true
3636
viewAn.heightAnchor.constraint(equalToConstant: fr.height).isActive = true
3737

38-
self.animation?.removeFromSuperview()
39-
self.animation = viewAn
38+
self.btnClickStyleView?.removeFromSuperview()
39+
self.btnClickStyleView = viewAn
4040
var frr = mainView.frame;frr.origin = .zero;mainView.frame = frr
4141
}
4242
// firstImageView?.image = state.firstImage

Example/ButtonClickStyle/UI/Button/Download/DownloadButtonView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class DownloadButtonView: BtnView {
5757
viewAn.widthAnchor.constraint(equalToConstant: fr.width).isActive = true
5858
viewAn.heightAnchor.constraint(equalToConstant: fr.height).isActive = true
5959

60-
self.animation?.removeFromSuperview()
61-
self.animation = viewAn
60+
self.btnClickStyleView?.removeFromSuperview()
61+
self.btnClickStyleView = viewAn
6262
var frr = mainView.frame;frr.origin = .zero;mainView.frame = frr
6363
}
6464
mainTitleLabel?.text = state.titleText

Example/ButtonClickStyle/UI/Button/Firefox/FirefoxButtonView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class FirefoxButtonView: BtnView {
4949
viewAn.widthAnchor.constraint(equalToConstant: fr.width).isActive = true
5050
viewAn.heightAnchor.constraint(equalToConstant: fr.height).isActive = true
5151

52-
self.animation?.removeFromSuperview()
53-
self.animation = viewAn
52+
self.btnClickStyleView?.removeFromSuperview()
53+
self.btnClickStyleView = viewAn
5454
var frr = mainView.frame;frr.origin = .zero;mainView.frame = frr
5555
}
5656
titleLabel?.text = state.titleText

Example/ButtonClickStyle/UI/Button/Google/GoogleButtonView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class GoogleButtonView: BtnView {
5454
viewAn.widthAnchor.constraint(equalToConstant: fr.width).isActive = true
5555
viewAn.heightAnchor.constraint(equalToConstant: fr.height).isActive = true
5656

57-
self.animation?.removeFromSuperview()
58-
self.animation = viewAn
57+
self.btnClickStyleView?.removeFromSuperview()
58+
self.btnClickStyleView = viewAn
5959
var frr = mainView.frame;frr.origin = .zero;mainView.frame = frr
6060
}
6161

0 commit comments

Comments
 (0)