summaryrefslogtreecommitdiff
path: root/HutchWidgetExtension/SystemStatusWidget.swift
diff options
context:
space:
mode:
Diffstat (limited to 'HutchWidgetExtension/SystemStatusWidget.swift')
-rw-r--r--HutchWidgetExtension/SystemStatusWidget.swift7
1 files changed, 3 insertions, 4 deletions
diff --git a/HutchWidgetExtension/SystemStatusWidget.swift b/HutchWidgetExtension/SystemStatusWidget.swift
index 4a3c1e5..a0908bb 100644
--- a/HutchWidgetExtension/SystemStatusWidget.swift
+++ b/HutchWidgetExtension/SystemStatusWidget.swift
@@ -63,17 +63,16 @@ private struct SystemStatusWidgetView: View {
var body: some View {
Group {
if let snapshot = entry.snapshot, !snapshot.services.isEmpty {
- switch family {
- case .systemMedium:
+ if family == .systemMedium {
mediumView(snapshot: snapshot)
- default:
+ } else {
smallView(snapshot: snapshot)
}
} else {
fallbackView
}
}
- .widgetURL(URL(string: "hutch://status"))
+ .widgetURL(HutchDeepLinkURL.status)
.containerBackground(for: .widget) {
Color(.systemBackground)
}