---
title: "isOperatingSystemAtLeast(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/processinfo/isoperatingsystematleast(_:)"
---

# 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

```swift
func isOperatingSystemAtLeast(_ version: OperatingSystemVersion) -> Bool
```

## Parameters

- `version`: The operating system version to test against.

## Return Value

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

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

## See Also

### Getting host information

- [hostName](foundation/processinfo/hostname.md)
- [operatingSystemVersionString](foundation/processinfo/operatingsystemversionstring.md)
- [operatingSystemVersion](foundation/processinfo/operatingsystemversion.md)
- [OperatingSystemVersion](foundation/operatingsystemversion.md)
- [operatingSystem()](foundation/processinfo/operatingsystem().md)
- [Anonymous](foundation/1552984-anonymous.md)
- [operatingSystemName()](foundation/processinfo/operatingsystemname().md)
