Skip to content

Commit 0bfd1c5

Browse files
committed
Added objc mark to UIButton extension.
1 parent 1a3a39a commit 0bfd1c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/SparrowKit/UIKit/Extensions/UIButtonExtension.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extension UIButton {
2929

3030
- parameter title: Title for button.
3131
*/
32-
open func setTitle(_ title: String) {
32+
@objc open func setTitle(_ title: String) {
3333
setTitle(title, for: .normal)
3434
}
3535

@@ -39,7 +39,7 @@ extension UIButton {
3939

4040
- parameter color: Color of title.
4141
*/
42-
open func setTitleColor(_ color: UIColor) {
42+
@objc open func setTitleColor(_ color: UIColor) {
4343
setTitleColor(color, for: .normal)
4444
setTitleColor(color.withAlphaComponent(0.7), for: .highlighted)
4545
}
@@ -49,7 +49,7 @@ extension UIButton {
4949

5050
- parameter image: Image for button.
5151
*/
52-
open func setImage(_ image: UIImage?) {
52+
@objc open func setImage(_ image: UIImage?) {
5353
setImage(image, for: .normal)
5454
setImage(image, for: .highlighted)
5555
setImage(image, for: .disabled)
@@ -58,7 +58,7 @@ extension UIButton {
5858
/**
5959
SparrowKit: Remove all targets.
6060
*/
61-
open func removeAllTargets() {
61+
@objc open func removeAllTargets() {
6262
self.removeTarget(nil, action: nil, for: .allEvents)
6363
}
6464
}

0 commit comments

Comments
 (0)