feat: Adds text labeled content and style.
This commit is contained in:
@@ -20,11 +20,11 @@ public struct FlaggedMeasurementsList: Sendable {
|
||||
public struct State: Equatable {
|
||||
|
||||
@Presents public var destination: Destination.State?
|
||||
@Shared var sharedSettings: SharedPressureEstimationSettings
|
||||
@Shared var sharedSettings: SharedPressureEstimationState
|
||||
|
||||
public init(
|
||||
destination: Destination.State? = nil,
|
||||
sharedSettings: Shared<SharedPressureEstimationSettings>
|
||||
sharedSettings: Shared<SharedPressureEstimationState>
|
||||
) {
|
||||
self.destination = destination
|
||||
self._sharedSettings = sharedSettings
|
||||
@@ -36,7 +36,7 @@ public struct FlaggedMeasurementsList: Sendable {
|
||||
return [.coilDrop, .filterDrop]
|
||||
}
|
||||
|
||||
public subscript<T>(dynamicMember keyPath: WritableKeyPath<SharedPressureEstimationSettings, T>) -> T {
|
||||
public subscript<T>(dynamicMember keyPath: WritableKeyPath<SharedPressureEstimationState, T>) -> T {
|
||||
get { sharedSettings[keyPath: keyPath] }
|
||||
set { sharedSettings[keyPath: keyPath] = newValue }
|
||||
}
|
||||
@@ -58,7 +58,7 @@ public struct FlaggedMeasurementsList: Sendable {
|
||||
public enum View {
|
||||
case addButtonTapped
|
||||
case destination(DestinationAction)
|
||||
case editButtonTapped(id: SharedPressureEstimationSettings.FlaggedMeasurementContainer.ID)
|
||||
case editButtonTapped(id: SharedPressureEstimationState.FlaggedMeasurementContainer.ID)
|
||||
case onAppear
|
||||
|
||||
@CasePathable
|
||||
@@ -282,7 +282,7 @@ public struct FlaggedMeasurementListView: View {
|
||||
#if DEBUG
|
||||
|
||||
private let budgets = BudgetedPercentEnvelope(equipmentType: .airHandler, fanType: .constantSpeed)
|
||||
private let flaggedMeasurements = IdentifiedArrayOf<SharedPressureEstimationSettings.FlaggedMeasurementContainer>(
|
||||
private let flaggedMeasurements = IdentifiedArrayOf<SharedPressureEstimationState.FlaggedMeasurementContainer>(
|
||||
uniqueElements: [
|
||||
.init(
|
||||
id: UUID(0),
|
||||
@@ -303,7 +303,7 @@ private let flaggedMeasurements = IdentifiedArrayOf<SharedPressureEstimationSett
|
||||
store: Store(
|
||||
initialState: FlaggedMeasurementsList.State(
|
||||
sharedSettings: Shared(
|
||||
SharedPressureEstimationSettings(
|
||||
SharedPressureEstimationState(
|
||||
budgets: budgets,
|
||||
equipmentMeasurement: .mock(type: .airHandler),
|
||||
flaggedEquipmentMeasurement: nil,
|
||||
|
||||
Reference in New Issue
Block a user