Refactor Dashboard traffic cards with line charts

This commit is contained in:
世界
2025-12-06 21:19:37 +08:00
parent 52efbd97d2
commit 0e206cc452
17 changed files with 299 additions and 93 deletions
@@ -0,0 +1,21 @@
import SwiftUI
public struct DashboardCardHeader: View {
private let icon: String
private let title: LocalizedStringKey
public init(icon: String, title: LocalizedStringKey) {
self.icon = icon
self.title = title
}
public var body: some View {
HStack(spacing: 8) {
Image(systemName: icon)
.foregroundStyle(.primary)
Text(title)
.font(.headline)
.fontWeight(.bold)
}
}
}