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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
19
Sources/Styleguide/Pickers/EquipmentTypePicker.swift
Normal file
19
Sources/Styleguide/Pickers/EquipmentTypePicker.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
import SharedModels
|
||||
import SwiftUI
|
||||
|
||||
public struct EquipmentTypePicker: View {
|
||||
@Binding var selection: EquipmentType
|
||||
|
||||
public init(selection: Binding<EquipmentType>) {
|
||||
self._selection = selection
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
Picker("Equipment Type", selection: $selection) {
|
||||
ForEach(EquipmentType.allCases) {
|
||||
Text($0.description)
|
||||
.tag($0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
21
Sources/Styleguide/Pickers/FanTypePicker.swift
Normal file
21
Sources/Styleguide/Pickers/FanTypePicker.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
import SharedModels
|
||||
import SwiftUI
|
||||
|
||||
public struct FanTypePicker: View {
|
||||
|
||||
@Binding var selection: FanType
|
||||
|
||||
public init(selection: Binding<FanType>) {
|
||||
self._selection = selection
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
Picker("Fan Type", selection: $selection) {
|
||||
ForEach(FanType.allCases) {
|
||||
Text($0.description)
|
||||
.tag($0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user