Link Search Menu Expand Document

Screen

public final class Screen 

Inheritance

CustomDebugStringConvertible, TraitEnvironment

Properties

main

Returns the screen object representing the device’s screen.

public static var main: Screen 

screens

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

public static var screens: [Screen] 

mirrored

The screen being mirrored by an external display.

public var mirrored: Screen?

bounds

The bounding rectangle of the screen, measured in points.

public let bounds: Rect

nativeBounds

The bounding rectangle of the physical screen, measured in pixels.

public let nativeBounds: Rect

nativeScale

The native scale factor for the physical screen.

public let nativeScale: Double

traitCollection

public private(set) var traitCollection: TraitCollection

debugDescription

public var debugDescription: String 

Methods

traitCollectionDidChange(_:)

public func traitCollectionDidChange(_ previousTraitCollection: TraitCollection?)