Skip to content

Structure

OperatingSystemVersion

A structure that contains version information about the currently executing operating system, including major, minor, and patch version numbers.
struct OperatingSystemVersion

Overview

Use the ProcessInfo property operatingSystemVersion to fetch an instance of this type. You can also pass this type to isOperatingSystemAtLeast(_:) to determine whether the current operating system version is the same or later than the given value.

Topics

Initializers

Instance Properties

Relationships

Conforms To

  • Swift.Decodable
  • Swift.Encodable
  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype