feat: Cleaning up shared models.
This commit is contained in:
@@ -2,18 +2,13 @@ import SharedModels
|
||||
import SwiftUI
|
||||
|
||||
public struct CoolingCapacityPicker: View {
|
||||
@Binding var selection: CoolingCapacity
|
||||
|
||||
public init(selection: Binding<CoolingCapacity>) {
|
||||
@Binding var selection: EquipmentMetadata.CoolingCapacity
|
||||
|
||||
public init(selection: Binding<EquipmentMetadata.CoolingCapacity>) {
|
||||
self._selection = selection
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
Picker("Cooling Capacity", selection: $selection) {
|
||||
ForEach(CoolingCapacity.allCases) {
|
||||
Text($0.description)
|
||||
.tag($0)
|
||||
}
|
||||
}
|
||||
CaseIterablePicker("Cooling Capacity", selection: $selection)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user