<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/OSVersion",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit9OSVersionV"
  },
  "title" : "OSVersion"
}
-->

# OSVersion

The version of the operating system on the device.

```
struct OSVersion
```

## Topics

### Instance Properties

[`let buildNumber: String`](/documentation/MetricKit/OSVersion/buildNumber)

The build number of the operating system (e.g., “23F75”).

[`let number: String`](/documentation/MetricKit/OSVersion/number)

The version number of the operating system (e.g., “26.5”).

[`let platform: String`](/documentation/MetricKit/OSVersion/platform)

The name of the operating system platform (e.g., “iPhone OS”).

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Decodable`](/documentation/Swift/Decodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Encodable`](/documentation/Swift/Encodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)