---
title: SunEvents
framework: weatherkit
role: symbol
role_heading: Structure
path: weatherkit/sunevents
---

# SunEvents

An enumeration that represents dates of solar events, including sunrise, sunset, dawn, and dusk.

## Declaration

```swift
struct SunEvents
```

## Topics

### Getting the sun events

- [astronomicalDawn](weatherkit/sunevents/astronomicaldawn.md)
- [astronomicalDusk](weatherkit/sunevents/astronomicaldusk.md)
- [civilDawn](weatherkit/sunevents/civildawn.md)
- [civilDusk](weatherkit/sunevents/civildusk.md)
- [nauticalDawn](weatherkit/sunevents/nauticaldawn.md)
- [nauticalDusk](weatherkit/sunevents/nauticaldusk.md)
- [solarMidnight](weatherkit/sunevents/solarmidnight.md)
- [solarNoon](weatherkit/sunevents/solarnoon.md)
- [sunrise](weatherkit/sunevents/sunrise.md)
- [sunset](weatherkit/sunevents/sunset.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Celestial information

- [MoonEvents](weatherkit/moonevents.md)
- [MoonPhase](weatherkit/moonphase.md)
