mirrored
The screen an external display mirrors from.
Declaration
var mirrored: UIScreen? { get }Discussion
When a screen supports mirroring and mirroring is active, this property contains the screen object associated with the device’s main screen. This represents the screen the attached display mirrors from. 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 present unique content on the external display, register a scene accessory with registerSceneAccessory(_:). For more information, see Presenting content on a connected display.