Skip to content

Commit

Permalink
Use primary as default for visionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Jan 20, 2024
1 parent 82a6216 commit 3b94b3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/Models/WhatsNew+SecondaryAction.swift
Expand Up @@ -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
) {
Expand Down

0 comments on commit 3b94b3b

Please sign in to comment.