Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,31 +122,31 @@ extension Reducer {
iOS,
deprecated: 9999,
message:
"Use an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/Migratingto14#Identified-actions"
"Use a case key path to an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.4"
)
@available(
macOS,
deprecated: 9999,
message:
"Use an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/Migratingto14#Identified-actions"
"Use a case key path to an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.4"
)
@available(
tvOS,
deprecated: 9999,
message:
"Use an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/Migratingto14#Identified-actions"
"Use a case key path to an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.4"
)
@available(
watchOS,
deprecated: 9999,
message:
"Use an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/Migratingto14#Identified-actions"
"Use a case key path to an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.4"
)
@inlinable
@warn_unqualified_access
public func forEach<ElementState, ElementAction, ID: Hashable, Element: Reducer>(
_ toElementsState: WritableKeyPath<State, IdentifiedArray<ID, ElementState>>,
action toElementAction: CaseKeyPath<Action, (id: ID, action: ElementAction)>,
action toElementAction: AnyCasePath<Action, (ID, ElementAction)>,
@ReducerBuilder<ElementState, ElementAction> element: () -> Element,
fileID: StaticString = #fileID,
line: UInt = #line
Expand All @@ -155,51 +155,10 @@ extension Reducer {
_ForEachReducer(
parent: self,
toElementsState: toElementsState,
toElementAction: AnyCasePath(toElementAction),
element: element(),
fileID: fileID,
line: line
)
}

@available(
iOS,
deprecated: 9999,
message:
"Use an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/Migratingto14#Identified-actions"
)
@available(
macOS,
deprecated: 9999,
message:
"Use an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/Migratingto14#Identified-actions"
)
@available(
tvOS,
deprecated: 9999,
message:
"Use an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/Migratingto14#Identified-actions"
)
@available(
watchOS,
deprecated: 9999,
message:
"Use an 'IdentifiedAction', instead. See the following migration guide for more information:\n\nhttps://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/Migratingto14#Identified-actions"
)
@inlinable
@warn_unqualified_access
public func forEach<ElementState, ElementAction, ID: Hashable, Element: Reducer>(
_ toElementsState: WritableKeyPath<State, IdentifiedArray<ID, ElementState>>,
action toElementAction: AnyCasePath<Action, (id: ID, action: ElementAction)>,
@ReducerBuilder<ElementState, ElementAction> element: () -> Element,
fileID: StaticString = #fileID,
line: UInt = #line
) -> _ForEachReducer<Self, ID, Element>
where ElementState == Element.State, ElementAction == Element.Action {
_ForEachReducer(
parent: self,
toElementsState: toElementsState,
toElementAction: toElementAction,
toElementAction: .init(
embed: toElementAction.embed,
extract: toElementAction.extract
),
element: element(),
fileID: fileID,
line: line
Expand Down