Reply to How can I set Dark Mode in Swift UI Tests? did you add the mentioned code (from the link) to SceneDelegate.swift? Also it would be slightly different for you, matching your own launchArgument. Programming Languages Swift Mar ’22