feat: Cleaning up shared models.
This commit is contained in:
@@ -23,18 +23,18 @@ public struct EquipmentSettingsForm {
|
||||
public struct State: Equatable {
|
||||
|
||||
@Presents public var destination: Destination.State?
|
||||
public var coolingCapacity: CoolingCapacity
|
||||
public var equipmentType: EquipmentType
|
||||
public var fanType: FanType
|
||||
public var coolingCapacity: EquipmentMetadata.CoolingCapacity
|
||||
public var equipmentType: EquipmentMeasurement.EquipmentType
|
||||
public var fanType: EquipmentMetadata.FanType
|
||||
public var focusedField: Field? = nil
|
||||
public var heatingCapacity: Double?
|
||||
public var ratedStaticPressures: RatedStaticPressures
|
||||
|
||||
public init(
|
||||
coolingCapacity: CoolingCapacity = .default,
|
||||
coolingCapacity: EquipmentMetadata.CoolingCapacity = .default,
|
||||
destination: Destination.State? = nil,
|
||||
equipmentType: EquipmentType = .airHandler,
|
||||
fanType: FanType = .constantSpeed,
|
||||
equipmentType: EquipmentMeasurement.EquipmentType = .airHandler,
|
||||
fanType: EquipmentMetadata.FanType = .constantSpeed,
|
||||
heatingCapacity: Double? = nil,
|
||||
ratedStaticPressures: RatedStaticPressures = .init()
|
||||
) {
|
||||
@@ -154,12 +154,13 @@ public struct EquipmentSettingsFormView: View {
|
||||
: "Capacity"
|
||||
)
|
||||
Spacer()
|
||||
Picker("Cooling Capcity", selection: $store.coolingCapacity) {
|
||||
ForEach(CoolingCapacity.allCases) {
|
||||
Text($0.description)
|
||||
.tag($0)
|
||||
}
|
||||
}
|
||||
CoolingCapacityPicker(selection: $store.coolingCapacity)
|
||||
// Picker("Cooling Capcity", selection: $store.coolingCapacity) {
|
||||
// ForEach(CoolingCapacity.allCases) {
|
||||
// Text($0.description)
|
||||
// .tag($0)
|
||||
// }
|
||||
// }
|
||||
}
|
||||
if store.equipmentType == .furnaceAndCoil {
|
||||
GridRow {
|
||||
|
||||
Reference in New Issue
Block a user