mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
38 lines
641 B
Swift
38 lines
641 B
Swift
//
|
|
// 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 {
|
|
switch self {
|
|
|
|
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"
|
|
}
|
|
}
|
|
}
|