wip
This commit is contained in:
@@ -173,7 +173,7 @@ public struct EquipmentMeasurementForm {
|
||||
}
|
||||
}
|
||||
|
||||
fileprivate extension Store where State == EquipmentMeasurementForm.State {
|
||||
extension Store where State == EquipmentMeasurementForm.State {
|
||||
|
||||
func prompt(
|
||||
field: EquipmentMeasurementForm.State.Field
|
||||
@@ -271,7 +271,6 @@ public struct EquipmentMeasurementFormView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Existing Measurements")
|
||||
.textLabelStyle(.boldSecondary)
|
||||
.textFieldStyle(.roundedBorder)
|
||||
.sheet(
|
||||
|
||||
@@ -127,29 +127,31 @@ public struct EquipmentSettingsFormView: View {
|
||||
public var body: some View {
|
||||
Form {
|
||||
Section {
|
||||
EquipmentTypePicker(selection: $store.equipmentType)
|
||||
.pickerStyle(.segmented)
|
||||
EmptyView()
|
||||
} header: {
|
||||
Text("Equipment Type")
|
||||
} footer: {
|
||||
EquipmentTypePicker(selection: $store.equipmentType)
|
||||
.pickerStyle(.segmented)
|
||||
}
|
||||
.listRowBackground(Color.clear)
|
||||
|
||||
Section {
|
||||
EmptyView()
|
||||
FanTypePicker(selection: $store.fanType)
|
||||
.pickerStyle(.segmented)
|
||||
} header: {
|
||||
Text("Fan Type")
|
||||
#if os(macOS)
|
||||
.font(.title2)
|
||||
#endif
|
||||
} footer: {
|
||||
FanTypePicker(selection: $store.fanType)
|
||||
.pickerStyle(.segmented)
|
||||
}
|
||||
|
||||
.listRowBackground(Color.clear)
|
||||
|
||||
Section {
|
||||
Grid(alignment: .leading, horizontalSpacing: 40) {
|
||||
GridRow {
|
||||
TextLabel("Cooling")
|
||||
TextLabel(
|
||||
store.equipmentType == .furnaceAndCoil
|
||||
? "Cooling"
|
||||
: "Capacity"
|
||||
)
|
||||
Spacer()
|
||||
Picker("Cooling Capcity", selection: $store.coolingCapacity) {
|
||||
ForEach(CoolingCapacity.allCases) {
|
||||
Text($0.description)
|
||||
@@ -167,11 +169,16 @@ public struct EquipmentSettingsFormView: View {
|
||||
)
|
||||
.focused($focusedField, equals: .heatingCapacity)
|
||||
.numberPad()
|
||||
.gridCellColumns(2)
|
||||
}
|
||||
}
|
||||
}
|
||||
} header: {
|
||||
header("Capacities", infoView: .capacities)
|
||||
if store.equipmentType == .airHandler {
|
||||
EmptyView()
|
||||
} else {
|
||||
Text("Capacities")
|
||||
}
|
||||
}
|
||||
|
||||
Section {
|
||||
@@ -282,7 +289,6 @@ public struct EquipmentSettingsFormView: View {
|
||||
}
|
||||
.labelsHidden()
|
||||
.bind($focusedField, to: $store.focusedField)
|
||||
.navigationTitle("Equipment Data")
|
||||
.textLabelStyle(.boldSecondary)
|
||||
.textFieldStyle(.roundedBorder)
|
||||
.sheet(
|
||||
|
||||
Reference in New Issue
Block a user