| 1 |
// |
|
| 2 |
// MeterComunicationView.swift |
|
| 3 |
// USB Meter |
|
| 4 |
// |
|
| 5 |
// Created by Bogdan Timofte on 05/05/2020. |
|
| 6 |
// Copyright © 2020 Bogdan Timofte. All rights reserved. |
|
| 7 |
// |
|
| 8 | ||
| 9 |
import SwiftUI |
|
| 10 | ||
| 11 |
struct MeterRowView: View {
|
|
| 12 | ||
| 13 |
@EnvironmentObject private var meter: Meter |
|
| 14 | ||
| 15 |
var body: some View {
|
|
| 16 |
HStack {
|
|
| 17 |
Image( systemName: "antenna.radiowaves.left.and.right" ).foregroundColor(Meter.operationalColor(for: meter.operationalState) ) |
|
| 18 |
Text("\(meter.name)")
|
|
| 19 |
// Spacer() |
|
| 20 |
} |
|
| 21 |
} |
|
| 22 |
} |