Skip to content

Commit bb08956

Browse files
committed
Xcode 16 compatibility
1 parent fbbd0ce commit bb08956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadList.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import SwiftUI
1010
public struct ThreadList<Factory: ViewFactory, HeaderView: View, FooterView: View>: View {
1111
var threads: LazyCachedMapCollection<ChatThread>
1212
private var factory: Factory
13-
private var threadDestination: (ChatThread) -> Factory.ThreadDestination
13+
private var threadDestination: @MainActor (ChatThread) -> Factory.ThreadDestination
1414
@Binding private var selectedThread: ThreadSelectionInfo?
1515

1616
private var onItemTap: (ChatThread) -> Void
@@ -25,7 +25,7 @@ public struct ThreadList<Factory: ViewFactory, HeaderView: View, FooterView: Vie
2525
public init(
2626
factory: Factory,
2727
threads: LazyCachedMapCollection<ChatThread>,
28-
threadDestination: @escaping (ChatThread) -> Factory.ThreadDestination,
28+
threadDestination: @escaping @MainActor (ChatThread) -> Factory.ThreadDestination,
2929
selectedThread: Binding<ThreadSelectionInfo?>,
3030
onItemTap: @escaping (ChatThread) -> Void,
3131
onItemAppear: @escaping (Int) -> Void,

0 commit comments

Comments
 (0)