Skip to content

Commit a0be570

Browse files
committed
Fix tv destonation.
1 parent c7283fa commit a0be570

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftBoost/UIKit/Extensions/UIButtonExtension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import UIKit
44
public extension UIButton {
55

66
func setTitle(_ title: String) {
7-
if #available(iOS 15.0, *) {
7+
if #available(iOS 15.0, tvOS 15.0, *) {
88
configuration?.title = title
99
} else {
1010
setTitle(title, for: .normal)
1111
}
1212
}
1313

1414
func setImage(_ image: UIImage?) {
15-
if #available(iOS 15.0, *) {
15+
if #available(iOS 15.0, tvOS 15.0, *) {
1616
configuration?.image = image
1717
} else {
1818
setImage(image, for: .normal)

0 commit comments

Comments
 (0)