| 1 |
// |
|
| 2 |
// SidebarBluetoothStatusCardView.swift |
|
| 3 |
// USB Meter |
|
| 4 |
// |
|
| 5 | ||
| 6 |
import SwiftUI |
|
| 7 | ||
| 8 |
struct SidebarBluetoothStatusCardView: View {
|
|
| 9 |
let tint: Color |
|
| 10 |
let statusText: String |
|
| 11 | ||
| 12 |
var body: some View {
|
|
| 13 |
VStack(alignment: .leading, spacing: 6) {
|
|
| 14 |
HStack {
|
|
| 15 |
Label("Bluetooth", systemImage: "bolt.horizontal.circle.fill")
|
|
| 16 |
.font(.footnote.weight(.semibold)) |
|
| 17 |
.foregroundColor(tint) |
|
| 18 |
Spacer() |
|
| 19 |
Text(statusText) |
|
| 20 |
.font(.caption.weight(.semibold)) |
|
| 21 |
.foregroundColor(.secondary) |
|
| 22 |
} |
|
| 23 |
Text("Refer to this adapter state while walking through the Bluetooth and Device troubleshooting steps.")
|
|
| 24 |
.font(.caption2) |
|
| 25 |
.foregroundColor(.secondary) |
|
| 26 |
} |
|
| 27 |
.padding(14) |
|
| 28 |
.meterCard(tint: tint, fillOpacity: 0.22, strokeOpacity: 0.26, cornerRadius: 18) |
|
| 29 |
} |
|
| 30 |
} |