We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fab4eac commit 058379dCopy full SHA for 058379d
Sources/GameMath/Color.swift
@@ -289,7 +289,7 @@ public extension Color {
289
#if canImport(AppKit) /* macOS */
290
public static var text: Color { Color(NSColor.textColor.cgColor) }
291
public static var textBackground: Color { Color(NSColor.textBackgroundColor.cgColor) }
292
- #elseif canImport(UIKit) /* iOS, tvOS */
+ #elseif canImport(UIKit) && !os(tvOS) /* iOS */
293
public static var text: Color { Color(UIColor.label.cgColor) }
294
public static var textBackground: Color { Color(UIColor.systemBackground.cgColor) }
295
#else /* Fallbacks allowing cross platform code to functions */
0 commit comments