Skip to content

Commit 058379d

Browse files
committed
Fix iOS build errors
1 parent fab4eac commit 058379d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GameMath/Color.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public extension Color {
289289
#if canImport(AppKit) /* macOS */
290290
public static var text: Color { Color(NSColor.textColor.cgColor) }
291291
public static var textBackground: Color { Color(NSColor.textBackgroundColor.cgColor) }
292-
#elseif canImport(UIKit) /* iOS, tvOS */
292+
#elseif canImport(UIKit) && !os(tvOS) /* iOS */
293293
public static var text: Color { Color(UIColor.label.cgColor) }
294294
public static var textBackground: Color { Color(UIColor.systemBackground.cgColor) }
295295
#else /* Fallbacks allowing cross platform code to functions */

0 commit comments

Comments
 (0)