Instance Method

isOperatingSystemAtLeast(_:)

Returns a Boolean value indicating whether the version of the operating system on which the process is executing is the same or later than the given version.

Declaration

func isOperatingSystemAtLeast(_ version: OperatingSystemVersion) -> Bool

Parameters

version

The operating system version to test against.

Return Value

true if the operating system on which the process is executing is the same or later than the given version; otherwise false.

Discussion

This method accounts for major, minor, and update versions of the operating system.

See Also

Getting Host Information

var hostName: String

The name of the host computer on which the process is executing.

func operatingSystem() -> Int

Returns a constant to indicate the operating system on which the process is executing.

Deprecated
func operatingSystemName() -> String

Returns a string containing the name of the operating system on which the process is executing.

Deprecated
var operatingSystemVersionString: String

A string containing the version of the operating system on which the process is executing.

var operatingSystemVersion: OperatingSystemVersion

The version of the operating system on which the process is executing.