aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-02-17 20:22:26 -0600
committerIván Ávalos <avalos@disroot.org>2022-02-17 20:22:26 -0600
commite7c2291795f54d6080895d939c7a1feeeeac5dc2 (patch)
treee71f13e59bb33e9f601e14e7cf18b92935779789
parentc7e934a5b215961dcd8f63b6a5586a45a91b9186 (diff)
downloadetbsa-trackermap-mobile-e7c2291795f54d6080895d939c7a1feeeeac5dc2.tar.gz
etbsa-trackermap-mobile-e7c2291795f54d6080895d939c7a1feeeeac5dc2.tar.bz2
etbsa-trackermap-mobile-e7c2291795f54d6080895d939c7a1feeeeac5dc2.zip
Removed unused code and attempt to set fixed size for device icon in row
-rw-r--r--iosApp/iosApp/Devices/DeviceRow.swift1
-rw-r--r--iosApp/iosApp/Units/UnitsViewModel.swift12
2 files changed, 1 insertions, 12 deletions
diff --git a/iosApp/iosApp/Devices/DeviceRow.swift b/iosApp/iosApp/Devices/DeviceRow.swift
index 42ef0dc..31ffbc0 100644
--- a/iosApp/iosApp/Devices/DeviceRow.swift
+++ b/iosApp/iosApp/Devices/DeviceRow.swift
@@ -38,6 +38,7 @@ struct DeviceRow: View {
/* MARK: - Device icon */
let category = Marker.companion.categoryToMarkerType(category: unit.device.category)
Image(MarkerTransformations.markerTypeToImageName(markerType: category))
+ .imageScale(.large)
.padding(5.0)
getSharedContent()
diff --git a/iosApp/iosApp/Units/UnitsViewModel.swift b/iosApp/iosApp/Units/UnitsViewModel.swift
index af6fe32..47adeb7 100644
--- a/iosApp/iosApp/Units/UnitsViewModel.swift
+++ b/iosApp/iosApp/Units/UnitsViewModel.swift
@@ -30,17 +30,6 @@ class UnitsViewModel: ObservableObject {
case list
}
- class Camera {
- let point: MaplyCoordinate?
- let height: Float?
-
- init(_ point: MaplyCoordinate? = nil,
- height: Float? = nil) {
- self.point = point
- self.height = height
- }
- }
-
var detailsUnit: UnitInformation? = nil
var detailsAction = DeviceRow.Action.details
@@ -72,7 +61,6 @@ class UnitsViewModel: ObservableObject {
@Published var selectedMarker: Marker? = nil
@Published var mapLayerType: MapLayer = .companion.defaultLayer
@Published var geofences: [Int: Geofence] = [:]
- @Published var camera: Camera = Camera()
init() {
unitsController.fetchUnits(scope: mainScope)