From 35e61410215344ea65662f447e81d8e2715d40dd Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Tue, 22 Jul 2025 19:02:25 +0200 Subject: [PATCH] feat: added snapshot data to Network widget --- Modules/Net/widget.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Modules/Net/widget.swift b/Modules/Net/widget.swift index 4919b97d..1a085fd2 100644 --- a/Modules/Net/widget.swift +++ b/Modules/Net/widget.swift @@ -16,7 +16,12 @@ import Kit public struct Network_entry: TimelineEntry { public static let kind = "NetworkWidget" - public static var snapshot: Network_entry = Network_entry() + public static var snapshot: Network_entry = Network_entry(value: Network_Usage( + bandwidth: Bandwidth(upload: 1_238_400, download: 18_732_000), + raddr: Network_addr(v4: "192.168.0.1"), + interface: Network_interface(displayName: "Stats"), + status: true + )) public var date: Date { Calendar.current.date(byAdding: .second, value: 5, to: Date())!