1 contributor
//
// SidebarLinkCardView.swift
// USB Meter
//
import SwiftUI
struct SidebarLinkCardView: View {
let title: String
let subtitle: String?
let symbol: String
let tint: Color
var body: some View {
HStack(spacing: 14) {
Image(systemName: symbol)
.font(.system(size: 18, weight: .semibold))
.foregroundColor(tint)
.frame(width: 42, height: 42)
.background(Circle().fill(tint.opacity(0.18)))
VStack(alignment: .leading, spacing: subtitle == nil ? 0 : 4) {
Text(title)
.font(.headline)
if let subtitle {
Text(subtitle)
.font(.caption)
.foregroundColor(.secondary)
}
}
Spacer()
Image(systemName: "chevron.right")
.font(.footnote.weight(.bold))
.foregroundColor(.secondary)
}
.padding(14)
.meterCard(tint: tint, fillOpacity: 0.16, strokeOpacity: 0.22, cornerRadius: 18)
}
}