Skip to content

Commit dfdbdb8

Browse files
committed
Fix tvOS build issue
1 parent a3b1e7e commit dfdbdb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/AnalyticsLive/Signals/AutoTracking/UIKit/SignalUIApplication.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ extension UIApplication {
5656
switch touch.view {
5757
case let v as UIButton:
5858
title = v.accessibilityLabel ?? v.currentTitle
59+
#if !os(tvOS)
5960
case let v as UISlider:
6061
title = v.accessibilityLabel
6162
data = ["value": v.value]
@@ -65,6 +66,7 @@ extension UIApplication {
6566
case let v as UISwitch:
6667
title = v.accessibilityLabel
6768
data = ["value": v.isOn]
69+
#endif
6870
case let v as UITextField:
6971
title = v.accessibilityLabel ?? v.placeholder
7072
let text = v.isSecureTextEntry ? "" : (v.text ?? "")

0 commit comments

Comments
 (0)