Files
swift-estimated-pressures-core/Sources/AirflowAtPressureFeature/InfoView.swift

45 lines
1010 B
Swift

import SwiftUI
struct AirflowAtPressureInfoView: View {
static let heading = """
Calculate the airflow at the target pressure from the existing airflow and existing pressure.
"""
static let body = """
This can be useful to determine the effect of a different blower speed on a specific measurement location (generally the supply or return plenum).
"""
var body: some View {
VStack(spacing: 40) {
ZStack {
Text(Self.heading)
.font(.headline)
.bold()
.foregroundStyle(Color.white)
.padding()
}
.background {
RoundedRectangle(cornerRadius: 10)
.foregroundStyle(Color.orange.opacity(0.6))
}
ZStack {
Text(Self.body)
.font(.callout)
.padding()
}
.background {
RoundedRectangle(cornerRadius: 10)
.foregroundStyle(Color.secondary.opacity(0.3))
}
.padding(.horizontal, 10)
Spacer()
}
.padding(.horizontal)
}
}