You can override the style for single views or view controller using the overrideUserInterfaceStyle
property. But since the window is also a view, you can set that on your main window to force it into light or dark mode:
window.overrideUserInterfaceStyle = .dark
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…