aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)