Instance Property


The preferred interface style for this view controller.


var preferredUserInterfaceStyle: UIUserInterfaceStyle { get }


The default value of this property is UIUserInterfaceStyle.unspecified, which causes your view controller to follow the system's current style. You can override this property to force the view controller to adopt a specific style.

See Also

Adjusting the Interface Style

var childViewControllerForUserInterfaceStyle: UIViewController?

The child view controller that supports the preferred user interface style.

func setNeedsUserInterfaceAppearanceUpdate()

Notifies the view controller that a change occurred that might affect the preferred interface style.

enum UIUserInterfaceStyle

Constants indicating the interface style for the app.