Skip to content

Instantly share code, notes, and snippets.

@flexih
flexih / weathermetada.swift
Last active February 25, 2023 23:14
Add weather conditions from WeatherKit to workout, displayed in Health App
extension WeatherCondition {
var hkWeatherCondition: HKWeatherCondition {
switch (self) {
case .clear:
return .clear
case .partlyCloudy:
return .partlyCloudy
case .mostlyCloudy:
return .mostlyCloudy