|
Bogdan Timofte
authored
a week ago
|
1
|
//
|
|
Bogdan Timofte
authored
a week ago
|
2
|
// MeterCurrentScreenSummaryView.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 MeterCurrentScreenSummaryView: View {
|
|
Bogdan Timofte
authored
a week ago
|
13
|
let reportsCurrentScreenIndex: Bool
|
|
|
14
|
let currentScreenDescription: String
|
|
|
15
|
let isExpandedCompactLayout: Bool
|
|
|
16
|
|
|
|
17
|
var body: some View {
|
|
|
18
|
if reportsCurrentScreenIndex {
|
|
|
19
|
Text(currentScreenDescription)
|
|
|
20
|
.font((isExpandedCompactLayout ? Font.title3 : .subheadline).weight(.semibold))
|
|
|
21
|
.multilineTextAlignment(.center)
|
|
|
22
|
} else {
|
|
|
23
|
VStack {
|
|
|
24
|
Image(systemName: "questionmark.square.dashed")
|
|
|
25
|
.font(.system(size: isExpandedCompactLayout ? 30 : 24, weight: .semibold))
|
|
|
26
|
.foregroundColor(.secondary)
|
|
|
27
|
}
|
|
|
28
|
}
|
|
|
29
|
}
|
|
|
30
|
}
|