Skip to content

Commit 37c6f36

Browse files
committed
Renamed removeAllTargets to removeTargetsAndActions.
1 parent 50b354d commit 37c6f36

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Sources/SparrowKit/UIKit/Extensions/UIButtonExtension.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,16 @@ extension UIButton {
5858
/**
5959
SparrowKit: Remove all targets.
6060
*/
61+
@available(*, deprecated, renamed: "removeTargetsAndActions")
6162
open func removeAllTargets() {
6263
self.removeTarget(nil, action: nil, for: .allEvents)
6364
}
65+
66+
/**
67+
SparrowKit: Remove all targets and actions.
68+
*/
69+
open func removeTargetsAndActions() {
70+
self.removeTarget(nil, action: nil, for: .allEvents)
71+
}
6472
}
6573
#endif

SparrowKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SparrowKit'
4-
s.version = '3.4.2'
4+
s.version = '3.4.3'
55
s.summary = 'Collection of native Swift extensions to boost your development. Support tvOS and watchOS.'
66
s.homepage = 'https://github.com/ivanvorobei/SparrowKit'
77
s.source = { :git => 'https://github.com/ivanvorobei/SparrowKit.git', :tag => s.version }

0 commit comments

Comments
 (0)