Skip to content

Commit c232a9f

Browse files
authored
Swift 5.7 fixes (#1089)
* Fix Swift 5.7 warnings * Fix Swift 5.7 threading issue
1 parent 79e44ce commit c232a9f

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-FocusState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
}
7676

7777
extension View {
78-
func synchronize<Value: Equatable>(
78+
func synchronize<Value>(
7979
_ first: Binding<Value>,
8080
_ second: FocusState<Value>.Binding
8181
) -> some View {

Sources/ComposableArchitecture/Internal/Deprecations.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,6 @@ extension ForEachStore {
616616
)
617617
where
618618
Data == [EachState],
619-
EachContent: View,
620619
Content == WithViewStore<
621620
[ID], (Data.Index, EachAction), ForEach<[(offset: Int, element: ID)], ID, EachContent>
622621
>
@@ -644,7 +643,6 @@ extension ForEachStore {
644643
)
645644
where
646645
Data == [EachState],
647-
EachContent: View,
648646
Content == WithViewStore<
649647
[ID], (Data.Index, EachAction), ForEach<[(offset: Int, element: ID)], ID, EachContent>
650648
>,

Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ where Data: Collection, ID: Hashable, Content: View {
8686
@ViewBuilder content: @escaping (Store<EachState, EachAction>) -> EachContent
8787
)
8888
where
89-
EachContent: View,
9089
Data == IdentifiedArray<ID, EachState>,
9190
Content == WithViewStore<
9291
OrderedSet<ID>, (ID, EachAction), ForEach<OrderedSet<ID>, ID, EachContent>

Sources/ComposableArchitecture/ViewStore.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ private struct HashableWrapper<Value>: Hashable {
436436
/// - action: An action.
437437
/// - predicate: A predicate on `State` that determines for how long this method should
438438
/// suspend.
439+
@MainActor
439440
public func send(
440441
_ action: Action,
441442
while predicate: @escaping (State) -> Bool

0 commit comments

Comments
 (0)