Skip to content

Commit 82f1581

Browse files
Update 1.0.2
1 parent 78d6079 commit 82f1581

25 files changed

Lines changed: 145 additions & 165 deletions

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.0.1'
11+
s.version = '1.0.2'
1212
s.summary = 'This is a customizable designable button view. Inside layer you can style button, create your own subviews. Choose 9 click animation styles'
1313

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

Example/ButtonClickStyle.xcodeproj/project.pbxproj

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
isa = PBXProject;
623623
attributes = {
624624
LastSwiftUpdateCheck = 0830;
625-
LastUpgradeCheck = 0830;
625+
LastUpgradeCheck = 1320;
626626
ORGANIZATIONNAME = CocoaPods;
627627
TargetAttributes = {
628628
607FACCF1AFB9204008FA782 = {
@@ -635,10 +635,9 @@
635635
};
636636
buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ButtonClickStyle" */;
637637
compatibilityVersion = "Xcode 3.2";
638-
developmentRegion = English;
638+
developmentRegion = en;
639639
hasScannedForEncodings = 0;
640640
knownRegions = (
641-
English,
642641
en,
643642
Base,
644643
);
@@ -815,6 +814,7 @@
815814
isa = XCBuildConfiguration;
816815
buildSettings = {
817816
ALWAYS_SEARCH_USER_PATHS = NO;
817+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
818818
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
819819
CLANG_CXX_LIBRARY = "libc++";
820820
CLANG_ENABLE_MODULES = YES;
@@ -823,14 +823,17 @@
823823
CLANG_WARN_BOOL_CONVERSION = YES;
824824
CLANG_WARN_COMMA = YES;
825825
CLANG_WARN_CONSTANT_CONVERSION = YES;
826+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
826827
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
827828
CLANG_WARN_EMPTY_BODY = YES;
828829
CLANG_WARN_ENUM_CONVERSION = YES;
829830
CLANG_WARN_INFINITE_RECURSION = YES;
830831
CLANG_WARN_INT_CONVERSION = YES;
831832
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
833+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
832834
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
833835
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
836+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
834837
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
835838
CLANG_WARN_STRICT_PROTOTYPES = YES;
836839
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -868,6 +871,7 @@
868871
isa = XCBuildConfiguration;
869872
buildSettings = {
870873
ALWAYS_SEARCH_USER_PATHS = NO;
874+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
871875
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
872876
CLANG_CXX_LIBRARY = "libc++";
873877
CLANG_ENABLE_MODULES = YES;
@@ -876,14 +880,17 @@
876880
CLANG_WARN_BOOL_CONVERSION = YES;
877881
CLANG_WARN_COMMA = YES;
878882
CLANG_WARN_CONSTANT_CONVERSION = YES;
883+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
879884
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
880885
CLANG_WARN_EMPTY_BODY = YES;
881886
CLANG_WARN_ENUM_CONVERSION = YES;
882887
CLANG_WARN_INFINITE_RECURSION = YES;
883888
CLANG_WARN_INT_CONVERSION = YES;
884889
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
890+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
885891
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
886892
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
893+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
887894
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
888895
CLANG_WARN_STRICT_PROTOTYPES = YES;
889896
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -920,7 +927,7 @@
920927
DEVELOPMENT_TEAM = Y7546NLJW9;
921928
INFOPLIST_FILE = ButtonClickStyle/Info.plist;
922929
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
923-
MARKETING_VERSION = 1.0.1;
930+
MARKETING_VERSION = 1.0.2;
924931
MODULE_NAME = ExampleApp;
925932
PRODUCT_BUNDLE_IDENTIFIER = mrustaa.ContainerController;
926933
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -941,7 +948,7 @@
941948
DEVELOPMENT_TEAM = Y7546NLJW9;
942949
INFOPLIST_FILE = ButtonClickStyle/Info.plist;
943950
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
944-
MARKETING_VERSION = 1.0.1;
951+
MARKETING_VERSION = 1.0.2;
945952
MODULE_NAME = ExampleApp;
946953
PRODUCT_BUNDLE_IDENTIFIER = mrustaa.ContainerController;
947954
PRODUCT_NAME = "$(TARGET_NAME)";

Example/ButtonClickStyle.xcodeproj/xcshareddata/xcschemes/ButtonClickStyle-Example.xcscheme

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "1320"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,8 +40,16 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4443
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<MacroExpansion>
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
48+
BuildableName = "ButtonClickStyle_Example.app"
49+
BlueprintName = "ButtonClickStyle_Example"
50+
ReferencedContainer = "container:ButtonClickStyle.xcodeproj">
51+
</BuildableReference>
52+
</MacroExpansion>
4553
<Testables>
4654
<TestableReference
4755
skipped = "NO">
@@ -54,23 +62,11 @@
5462
</BuildableReference>
5563
</TestableReference>
5664
</Testables>
57-
<MacroExpansion>
58-
<BuildableReference
59-
BuildableIdentifier = "primary"
60-
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
61-
BuildableName = "ButtonClickStyle_Example.app"
62-
BlueprintName = "ButtonClickStyle_Example"
63-
ReferencedContainer = "container:ButtonClickStyle.xcodeproj">
64-
</BuildableReference>
65-
</MacroExpansion>
66-
<AdditionalOptions>
67-
</AdditionalOptions>
6865
</TestAction>
6966
<LaunchAction
7067
buildConfiguration = "Debug"
7168
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7269
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73-
language = ""
7470
launchStyle = "0"
7571
useCustomWorkingDirectory = "NO"
7672
ignoresPersistentStateOnLaunch = "NO"
@@ -87,8 +83,6 @@
8783
ReferencedContainer = "container:ButtonClickStyle.xcodeproj">
8884
</BuildableReference>
8985
</BuildableProductRunnable>
90-
<AdditionalOptions>
91-
</AdditionalOptions>
9286
</LaunchAction>
9387
<ProfileAction
9488
buildConfiguration = "Release"

Example/ButtonClickStyle/ButtonClickStyle/Animations/UIView+AnimationAlpha.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import UIKit
44

5-
public extension UIView {
5+
extension UIView {
66

77
// MARK: - Alpha
88

9-
func buttonClickStyleAlpha(with views: [UIView], visible: Bool, value: CGFloat, duration: CGFloat?) {
9+
public func buttonClickStyleAlpha(with views: [UIView], visible: Bool, value: CGFloat, duration: CGFloat?) {
1010

1111
var alpha: CGFloat = 1.0
1212
if visible != true {

Example/ButtonClickStyle/ButtonClickStyle/Animations/UIView+AnimationAndroidPulse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
import UIKit
99

10-
public extension UIView {
10+
extension UIView {
1111

1212
// MARK: - Android Pulse
1313

14-
func buttonClickStyleAndroidPulse(radius: CGFloat, duration: CGFloat, color: UIColor? = nil, value: CGFloat? = nil, position: CGPoint) {
14+
public func buttonClickStyleAndroidPulse(radius: CGFloat, duration: CGFloat, color: UIColor? = nil, value: CGFloat? = nil, position: CGPoint) {
1515

1616
var rcolor = #colorLiteral(red: 0, green: 0, blue: 0, alpha: 0.2786076018)
1717

Example/ButtonClickStyle/ButtonClickStyle/Animations/UIView+AnimationColor.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
import UIKit
33

4-
public extension UIView {
4+
extension UIView {
55

66
// MARK: - Color inversion
77

8-
func inversionColor(duration: CGFloat, cornRadius: CGFloat? = nil, value: UIColor) { // .s1
8+
public func inversionColor(duration: CGFloat, cornRadius: CGFloat? = nil, value: UIColor) { // .s1
99

1010
let v = UIView(frame: frame)
1111
v.backgroundColor = value.inverted
@@ -32,7 +32,7 @@ public extension UIView {
3232
}
3333
}
3434

35-
func buttonClickStyleColorTouchDown(cornRadius: CGFloat? = nil, color: UIColor, alpha: CGFloat) { // .s1
35+
public func buttonClickStyleColorTouchDown(cornRadius: CGFloat? = nil, color: UIColor, alpha: CGFloat) { // .s1
3636

3737
let from = color.withAlphaComponent(alpha)
3838

@@ -48,7 +48,7 @@ public extension UIView {
4848
}
4949
}
5050

51-
func buttonClickStyleColor(duration: CGFloat, cornRadius: CGFloat? = nil, color: UIColor, alpha: CGFloat) { // .s1
51+
public func buttonClickStyleColor(duration: CGFloat, cornRadius: CGFloat? = nil, color: UIColor, alpha: CGFloat) { // .s1
5252

5353
// return;
5454

@@ -118,7 +118,7 @@ public extension UIView {
118118
}
119119
}
120120

121-
func radiusSearch(_ cornRadius: CGFloat? = nil) -> CGFloat {
121+
public func radiusSearch(_ cornRadius: CGFloat? = nil) -> CGFloat {
122122
if let r = cornRadius { return r }
123123
guard let mainView = self.superview else { return 0 }
124124
var radius = mainView.layer.cornerRadius

Example/ButtonClickStyle/ButtonClickStyle/Animations/UIView+AnimationColorFlat.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ private let flatBorderTag = 62
55
private let flatTextTag = 63
66
private let flatImageTag = 64
77

8-
public extension UIView {
8+
extension UIView {
99

1010
// MARK: - Add Animation Color Flat
1111

12-
func buttonClickStyleColorFlat(duration: CGFloat, cornRadius: CGFloat? = nil, visible: Bool, value: CGFloat, color: UIColor? = nil) {
12+
public func buttonClickStyleColorFlat(duration: CGFloat, cornRadius: CGFloat? = nil, visible: Bool, value: CGFloat, color: UIColor? = nil) {
1313

1414
guard let superview = self.superview else { return }
1515

@@ -182,15 +182,15 @@ public extension UIView {
182182

183183
extension DesignableView {
184184

185-
enum ColorType {
185+
public enum ColorType {
186186
case fill
187187
case border
188188
case gradient
189189
}
190190

191191

192192

193-
func getFirstFindColorSubviews() -> (color: UIColor?, typee: ColorType) {
193+
public func getFirstFindColorSubviews() -> (color: UIColor?, typee: ColorType) {
194194
if let fill = getFillColor() {
195195
return (fill, .fill)
196196
}
@@ -200,7 +200,7 @@ extension DesignableView {
200200
return (getFillColorSubviews(), .fill)
201201
}
202202

203-
func getFillColorSubviews() -> UIColor? {
203+
public func getFillColorSubviews() -> UIColor? {
204204
var fill: UIColor? = self.getFillColor()
205205
if fill == nil {
206206
let subFigures = self.subviews.compactMap { $0 as? DesignableView }
@@ -214,7 +214,7 @@ extension DesignableView {
214214
}
215215

216216

217-
func getBorderColor() -> UIColor? {
217+
public func getBorderColor() -> UIColor? {
218218
var br: UIColor?
219219
if self.brColor != .clear {
220220
br = self.brColor
@@ -227,7 +227,7 @@ extension DesignableView {
227227
return br
228228
}
229229

230-
func getFillColor() -> UIColor?{
230+
public func getFillColor() -> UIColor?{
231231
var fill: UIColor?
232232
if let fillColor = self.fillColor, fillColor != .clear {
233233
fill = fillColor
@@ -239,7 +239,7 @@ extension DesignableView {
239239
return fill
240240
}
241241

242-
func getAllLabelsSubviews() -> [UILabel] {
242+
public func getAllLabelsSubviews() -> [UILabel] {
243243
var labels = self.subviews.compactMap { $0 as? UILabel }
244244
self.subviews.forEach { v2 in
245245
labels += v2.subviews.compactMap { $0 as? UILabel }
@@ -251,7 +251,7 @@ extension DesignableView {
251251
}
252252

253253

254-
func getAllImageViewSubviews() -> [UIImageView] {
254+
public func getAllImageViewSubviews() -> [UIImageView] {
255255
var imageVs = self.subviews.compactMap { $0 as? UIImageView }
256256
self.subviews.forEach { v2 in
257257
imageVs += v2.subviews.compactMap { $0 as? UIImageView }

Example/ButtonClickStyle/ButtonClickStyle/Animations/UIView+AnimationFlash.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
import UIKit
99

10-
public extension UIView {
10+
extension UIView {
1111

1212
// MARK: - Flash
1313

14-
func buttonClickStyleFlash(value: CGFloat, duration: CGFloat) {
14+
public func buttonClickStyleFlash(value: CGFloat, duration: CGFloat) {
1515

1616
let flash = CABasicAnimation(keyPath: "opacity")
1717
flash.duration = duration

Example/ButtonClickStyle/ButtonClickStyle/Animations/UIView+AnimationPress.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
import UIKit
33

4-
public extension UIView {
4+
extension UIView {
55

66
// MARK: - Press
77

8-
func buttonClickStylePress(duration: CGFloat, cornRadius: CGFloat? = nil, value: CGFloat, shadow: Bool, visible: Bool) {
8+
public func buttonClickStylePress(duration: CGFloat, cornRadius: CGFloat? = nil, value: CGFloat, shadow: Bool, visible: Bool) {
99
if visible {
1010
animate(duration: duration, view: self, transform: .identity)
1111
if shadow {

Example/ButtonClickStyle/ButtonClickStyle/Animations/UIView+AnimationPulsate.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
import UIKit
99

10-
public extension UIView {
10+
extension UIView {
1111

1212

1313
// MARK: - Pulsate
1414

15-
func buttonClickStylePulsate(value: CGFloat, duration: CGFloat) {
15+
public func buttonClickStylePulsate(value: CGFloat, duration: CGFloat) {
1616

1717
let pulse = CASpringAnimation(keyPath: "transform.scale")
1818
pulse.duration = duration
@@ -29,7 +29,7 @@ public extension UIView {
2929

3030
// MARK: - Pulsate 2
3131

32-
func buttonClickStylePulsateNew(duration: CGFloat, value: CGFloat, visible: Bool) {
32+
public func buttonClickStylePulsateNew(duration: CGFloat, value: CGFloat, visible: Bool) {
3333
if visible {
3434
animate(duration: duration, view: self, transform: .identity)
3535
} else {
@@ -38,7 +38,7 @@ public extension UIView {
3838
}
3939
}
4040

41-
func animate(duration: CGFloat, view: UIView, transform: CGAffineTransform) {
41+
public func animate(duration: CGFloat, view: UIView, transform: CGAffineTransform) {
4242
UIView.animate(withDuration: duration, // 0.4,
4343
delay: 0,
4444
usingSpringWithDamping: 0.5,

0 commit comments

Comments
 (0)