You should use the new modifier introduced in iOS 18: .widgetAccentedRenderingMode(.fullColor). It allows to override view rendering mode.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: