Meshtastic-Apple/Meshtastic/Views/Helpers/Weather/IAQScale.swift
Garth Vander Houwen cdf260ea54 IAQ legend popower
2024-07-10 20:41:13 -07:00

36 lines
581 B
Swift

//
// IAQScale.swift
// Meshtastic
//
// Created by Garth Vander Houwen on 4/24/24.
//
import SwiftUI
struct IAQScale: View {
var body: some View {
VStack(alignment: .leading) {
Text("Indoor Air Quality (IAQ)")
.font(.title3)
ForEach(Iaq.allCases) { iaq in
HStack {
RoundedRectangle(cornerRadius: 5)
.fill(iaq.color)
.frame(width: 30, height: 20)
Text(iaq.description)
.font(.callout)
}
}
}
.padding()
}
}
struct IAQSCalePreviews: PreviewProvider {
static var previews: some View {
VStack {
IAQScale()
}
}
}