<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/UVIndex",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit7UVIndexV"
  },
  "title" : "UVIndex"
}
-->

# UVIndex

The expected intensity of ultraviolet radiation from the sun.

```
struct UVIndex
```

## Topics

### Getting the UV index

[`var category: UVIndex.ExposureCategory`](/documentation/WeatherKit/UVIndex/category)

The UV Index exposure category.

[`var value: Int`](/documentation/WeatherKit/UVIndex/value)

The UV Index value.

[`enum ExposureCategory`](/documentation/WeatherKit/UVIndex/ExposureCategory)

An enumeration that indicates risk of harm from unprotected sun exposure.

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)