Skip to content

Commit 01cf328

Browse files
lechiumKevin Bradleydavdroman
authored
Fix UIColorWell build error on tvOS 13 (#217)
Co-authored-by: Kevin Bradley <bradleyk@wondrium.com> Co-authored-by: David Roman <2538074+davdroman@users.noreply.github.com>
1 parent 9304322 commit 01cf328

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Introspect/ViewExtensions.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@ extension View {
187187
}
188188

189189
/// Finds a `UIColorWell` from a `SwiftUI.ColorPicker`
190+
#if os(iOS)
190191
@available(iOS 14, *)
191192
@available(tvOS, unavailable)
192193
public func introspectColorWell(customize: @escaping (UIColorWell) -> ()) -> some View {
193194
introspect(selector: TargetViewSelector.siblingContaining, customize: customize)
194195
}
196+
#endif
195197
}
196198
#endif
197199

IntrospectTests/UIKitTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ private struct SegmentedControlTestView: View {
367367
}
368368
}
369369

370+
#if os(iOS)
370371
@available(iOS 14.0, *)
371372
@available(tvOS, unavailable)
372373
private struct ColorWellTestView: View {
@@ -380,6 +381,7 @@ private struct ColorWellTestView: View {
380381
}
381382
}
382383
}
384+
#endif
383385

384386
import MapKit
385387
@available(iOS 14, tvOS 14, *)

0 commit comments

Comments
 (0)