From e7c2291795f54d6080895d939c7a1feeeeac5dc2 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Thu, 17 Feb 2022 20:22:26 -0600 Subject: Removed unused code and attempt to set fixed size for device icon in row --- iosApp/iosApp/Devices/DeviceRow.swift | 1 + iosApp/iosApp/Units/UnitsViewModel.swift | 12 ------------ 2 files changed, 1 insertion(+), 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) -- cgit v1.2.3