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
init()Creates an empty operating system version.init(from: any Decoder) throwsinit(majorVersion: Int, minorVersion: Int, patchVersion: Int)Creates an operating system version with the provided values.
Instance Properties
let majorVersion: IntThe major release number, such as 10 in version 10.9.3.let minorVersion: IntThe minor release number, such as 9 in version 10.9.3.let patchVersion: IntThe update release number, such as 3 in version 10.9.3.
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype