|
Bogdan Timofte
authored
a week ago
|
1
|
//
|
|
Bogdan Timofte
authored
a week ago
|
2
|
// MeterConnectionStatusBadgeView.swift
|
|
Bogdan Timofte
authored
a week ago
|
3
|
// USB Meter
|
|
|
4
|
//
|
|
|
5
|
// Created by Bogdan Timofte on 29/03/2026.
|
|
|
6
|
// Co-authored-by: GPT-5.3-Codex.
|
|
|
7
|
// Copyright © 2026 Bogdan Timofte. All rights reserved.
|
|
|
8
|
//
|
|
|
9
|
|
|
|
10
|
import SwiftUI
|
|
|
11
|
|
|
Bogdan Timofte
authored
a week ago
|
12
|
struct MeterConnectionStatusBadgeView: View {
|
|
Bogdan Timofte
authored
a week ago
|
13
|
let text: String
|
|
|
14
|
let color: Color
|
|
|
15
|
|
|
|
16
|
var body: some View {
|
|
|
17
|
Text(text)
|
|
|
18
|
.font(.caption.weight(.bold))
|
|
|
19
|
.padding(.horizontal, 12)
|
|
|
20
|
.padding(.vertical, 6)
|
|
|
21
|
.meterCard(tint: color, fillOpacity: 0.24, strokeOpacity: 0.30, cornerRadius: 999)
|
|
|
22
|
}
|
|
|
23
|
}
|