diff options
Diffstat (limited to 'iosApp/iosApp/Details/DetailsView.swift')
-rw-r--r-- | iosApp/iosApp/Details/DetailsView.swift | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iosApp/iosApp/Details/DetailsView.swift b/iosApp/iosApp/Details/DetailsView.swift index 2c7418b..c869369 100644 --- a/iosApp/iosApp/Details/DetailsView.swift +++ b/iosApp/iosApp/Details/DetailsView.swift @@ -40,6 +40,8 @@ struct DetailsView: View { UnitReportsView(unit: unit) case .commands: UnitCommandsView(unit: unit) + default: + EmptyView() } } else { LoadingView() @@ -48,7 +50,7 @@ struct DetailsView: View { .navigationBarTitleView( Picker(selection: $action) { Text("details").tag(DeviceRow.Action.details) - Text("reports").tag(DeviceRow.Action.reports) + //Text("reports").tag(DeviceRow.Action.reports) Text("commands").tag(DeviceRow.Action.commands) } label: { EmptyView() @@ -62,6 +64,7 @@ struct DetailsView: View { let type = Marker.companion .categoryToMarkerType(category: category) Image(MarkerTransformations.markerTypeToImageName(markerType: type)) + .sizeToFit() } else { EmptyView() } |