---
title: osVersion
framework: metrickit
role: symbol
role_heading: Instance Property
path: metrickit/metricreport/environment-swift.struct/osversion
---

# osVersion

The version of the OS on the device including the type of OS, version number, and build number.

## Declaration

```swift
let osVersion: OSVersion
```

## Mentioned in

Analyzing app performance with MetricKit

## See Also

### Device information

- [deviceType](metrickit/metricreport/environment-swift.struct/devicetype.md)
- [platformArchitecture](metrickit/metricreport/environment-swift.struct/platformarchitecture.md)
- [regionFormat](metrickit/metricreport/environment-swift.struct/regionformat.md)
