screens
Returns an array containing all of the screens attached to the device.
Declaration
class var screens: [UIScreen] { get }Return Value
An array of UIScreen objects.
Discussion
The returned array includes the main screen plus any additional screens connected to the device. The main screen is always at index 0.
Not all devices support external displays. iPhone and iPod touch devices with Retina displays and iPads support external displays. Older devices, such as the iPhone 3GS, don’t support external displays.