feat: Begins flagged measurement list view.
This commit is contained in:
19
Sources/Styleguide/Pickers/CoolingCapacityPicker.swift
Normal file
19
Sources/Styleguide/Pickers/CoolingCapacityPicker.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
import SharedModels
|
||||
import SwiftUI
|
||||
|
||||
public struct CoolingCapacityPicker: View {
|
||||
@Binding var selection: CoolingCapacity
|
||||
|
||||
public init(selection: Binding<CoolingCapacity>) {
|
||||
self._selection = selection
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
Picker("Cooling Capacity", selection: $selection) {
|
||||
ForEach(CoolingCapacity.allCases) {
|
||||
Text($0.description)
|
||||
.tag($0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user