Skip to content

Commit b4f6da8

Browse files
authored
Fix messages not appearing when presenting ChatChannelView with UIKit on iOS 26.1 (#1007)
1 parent 222f93d commit b4f6da8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,6 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
183183
viewModel.reactionsShown = false
184184
messageDisplayInfo = nil
185185
}
186-
.onChange(of: presentationMode.wrappedValue, perform: { newValue in
187-
if newValue.isPresented == false {
188-
viewModel.onViewDissappear()
189-
} else {
190-
viewModel.setActive()
191-
}
192-
})
193186
.background(
194187
Color(colors.background).background(
195188
TabBarAccessor { _ in
@@ -221,9 +214,3 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
221214
return bottomPadding
222215
}
223216
}
224-
225-
extension PresentationMode: Equatable {
226-
public static func == (lhs: PresentationMode, rhs: PresentationMode) -> Bool {
227-
lhs.isPresented == rhs.isPresented
228-
}
229-
}

0 commit comments

Comments
 (0)