Skip to content

Commit 22947f3

Browse files
arobenmluisbrown
authored andcommitted
Fix a redundant conformance constraint warning in ForEachStore (#738)
The warning was: Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift:141:28: warning: redundant conformance constraint 'EachContent' : 'View' public init<EachContent: View>( ^ Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift:146:16: note: conformance constraint 'EachContent' : 'View' implied here EachContent: View, ^ I fixed the warning by removing the redundant constraint from the type parameter.
1 parent f509a00 commit 22947f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ where Data: Collection, ID: Hashable, Content: View {
8383
/// - Parameters:
8484
/// - store: A store on an identified array of data and an identified action.
8585
/// - content: A function that can generate content given a store of an element.
86-
public init<EachContent: View>(
86+
public init<EachContent>(
8787
_ store: Store<IdentifiedArray<ID, EachState>, (ID, EachAction)>,
8888
@ViewBuilder content: @escaping (Store<EachState, EachAction>) -> EachContent
8989
)

0 commit comments

Comments
 (0)