File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Sources/StreamChatSwiftUI/ChatChannel/MessageList Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
33
44# Upcoming
55
6- ### 🔄 Changed
6+ ### 🐞 Fixed
7+ - Rare crash when accessing frame of the view [ #607 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/607 )
78
89# [ 4.63.0] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.63.0 )
910_ September 12, 2024_
Original file line number Diff line number Diff line change @@ -112,9 +112,7 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
112112 GeometryReader { proxy in
113113 Rectangle ( ) . fill ( Color . clear)
114114 . onChange ( of: computeFrame, perform: { _ in
115- DispatchQueue . main. async {
116- frame = proxy. frame ( in: . global)
117- }
115+ frame = proxy. frame ( in: . global)
118116 } )
119117 }
120118 )
@@ -347,9 +345,8 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
347345 showsMessageActions: Bool ,
348346 showsBottomContainer: Bool = true
349347 ) {
350- computeFrame = true
348+ computeFrame. toggle ( )
351349 DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.1 ) {
352- computeFrame = false
353350 triggerHapticFeedback ( style: . medium)
354351 onLongPress (
355352 MessageDisplayInfo (
You can’t perform that action at this time.
0 commit comments