The code below will opt out a specific view controller:
override func viewDidLoad() {
super.viewDidLoad()
// Always adopt a light interface style.
verrideUserInterfaceStyle = .light
}
Or you can opt out your entire app with the following key in your info.plist file: UIUserInterfaceStyle And assign it a value of Light.