Post

Replies

Boosts

Views

Activity

Reply to Render a SwiftUI view into an image on Dark mode not work
For those wondering, I was able to fix something similar using a hacky solution by applying this modifier to the view I wanted to render: .environment(\.colorScheme, colorScheme == .light ? .light : .dark) @Environment(\.colorScheme) private var colorScheme.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24