Instance Property

mirrored

The screen being mirrored by an external display.

Declaration

var mirrored: UIScreen? { get }

Discussion

If mirroring is supported and currently active, this property contains the screen object associated with the device’s main screen. This represents the screen being mirrored by the attached display. The value of this property is nil when mirroring is disabled, not supported, or no screen is connected to the device.

To disable mirroring and use the external display for presenting unique content, create a window and associate it with the corresponding screen object. To re-enable mirroring, remove the window from the corresponding screen object.

See Also

Getting the Available Screens

class var main: UIScreen

Returns the screen object representing the device’s screen.

class var screens: [UIScreen]

Returns an array containing all of the screens attached to the device.