I seem to have found the solution myself. Setting .preferredColorScheme(.light) on a SwiftUI View disables dark mode.
Topic:
Community
SubTopic:
Swift Student Challenge
Tags: