Structure

OperatingSystemVersion

Operating system version structure used with operatingSystemVersion and isOperatingSystemAtLeast(_:).

Declaration

struct OperatingSystemVersion

Topics

Creating an Operating System Version

init()

Creates an empty operating system version.

init(majorVersion: Int, minorVersion: Int, patchVersion: Int)

Creates an operating system version with the provided values.

Version Components

var majorVersion: Int

The major release number, such as 10 in version 10.9.3.

var minorVersion: Int

The minor release number, such as 9 in version 10.9.3.

var patchVersion: Int

The update release number, such as 3 in version 10.9.3.