Meshtastic-Apple/Meshtastic/Enums/TelemetryWeather.swift

39 lines
641 B
Swift
Raw Normal View History

//
// TelemetryWeather.swift
// Meshtastic
//
// Copyright Garth Vander Houwen 2/4/23.
//
enum WeatherConditions: Int, CaseIterable, Identifiable {
case clear = 0
case cloudy = 1
case frigid = 2
case hot = 3
case rain = 4
case smoky = 5
case snow = 6
var id: Int { self.rawValue }
var symbolName: String {
2023-03-06 13:26:04 -08:00
switch self {
2023-03-06 10:33:18 -08:00
2023-03-06 13:26:04 -08:00
case .clear:
return "sparkle"
case .cloudy:
return "cloud"
case .hot:
return "sun.max.trianglebadge.exclamationmark.fill"
case .rain:
return "cloud.rain"
case .frigid:
return "thermometer.snowflake"
case .smoky:
return "smoke"
case .snow:
return "cloud.snow"
}
}
}