From 3b94b3bf6feb01b7bbe5373f5f21219650cf7e96 Mon Sep 17 00:00:00 2001 From: Sven Tiigi Date: Sat, 20 Jan 2024 23:19:48 +0100 Subject: [PATCH] Use primary as default for visionOS --- Sources/Models/WhatsNew+SecondaryAction.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/Models/WhatsNew+SecondaryAction.swift b/Sources/Models/WhatsNew+SecondaryAction.swift index 2d840fa..f1b9798 100644 --- a/Sources/Models/WhatsNew+SecondaryAction.swift +++ b/Sources/Models/WhatsNew+SecondaryAction.swift @@ -31,7 +31,13 @@ public extension WhatsNew { /// - action: The Action public init( title: Text, - foregroundColor: Color = .accentColor, + foregroundColor: Color = { + #if os(visionOS) + .primary + #else + .accentColor + #endif + }(), hapticFeedback: HapticFeedback? = nil, action: Action ) {