Skip to content

Instance MethodFoundationEssentials

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.
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.