diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-01-09 23:01:00 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-01-09 23:01:00 -0600 |
commit | 7c0bd3d55b80cf4bb7aef4e629d20a845c0a5be7 (patch) | |
tree | 98e3a829d8076af9ef5cc42bf120feaa72c4e74e /iosApp/iosApp/Devices/DeviceRow.swift | |
parent | 1039633225ee601d0ada7f42dd43165964938218 (diff) | |
download | etbsa-trackermap-mobile-7c0bd3d55b80cf4bb7aef4e629d20a845c0a5be7.tar.gz etbsa-trackermap-mobile-7c0bd3d55b80cf4bb7aef4e629d20a845c0a5be7.tar.bz2 etbsa-trackermap-mobile-7c0bd3d55b80cf4bb7aef4e629d20a845c0a5be7.zip |
Bumped version to 1.4 and added ignition icon
Diffstat (limited to 'iosApp/iosApp/Devices/DeviceRow.swift')
-rw-r--r-- | iosApp/iosApp/Devices/DeviceRow.swift | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/iosApp/iosApp/Devices/DeviceRow.swift b/iosApp/iosApp/Devices/DeviceRow.swift index ee3298d..8a826ca 100644 --- a/iosApp/iosApp/Devices/DeviceRow.swift +++ b/iosApp/iosApp/Devices/DeviceRow.swift @@ -64,7 +64,7 @@ struct DeviceRow: View { .padding(2.0) } } - + @ViewBuilder func getSharedContent() -> some View { VStack { @@ -83,6 +83,13 @@ struct DeviceRow: View { EmptyView() } + /* MARK: - Ignition */ + if (unit.getIgnition()) { + Image(systemName: "key.fill") + .foregroundColor(.systemYellow) + .imageScale(.small) + } + /* MARK: - Engine stop */ switch (unit.getEngineStop()) { case .on: |