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/).
3
3
4
4
# Upcoming
5
5
6
- ### 🔄 Changed
6
+ ### 🐞 Fixed
7
+ - Rare crash when accessing frame of the view [ #607 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/607 )
7
8
8
9
# [ 4.63.0] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.63.0 )
9
10
_ September 12, 2024_
Original file line number Diff line number Diff line change @@ -112,9 +112,7 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
112
112
GeometryReader { proxy in
113
113
Rectangle ( ) . fill ( Color . clear)
114
114
. onChange ( of: computeFrame, perform: { _ in
115
- DispatchQueue . main. async {
116
- frame = proxy. frame ( in: . global)
117
- }
115
+ frame = proxy. frame ( in: . global)
118
116
} )
119
117
}
120
118
)
@@ -347,9 +345,8 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
347
345
showsMessageActions: Bool ,
348
346
showsBottomContainer: Bool = true
349
347
) {
350
- computeFrame = true
348
+ computeFrame. toggle ( )
351
349
DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.1 ) {
352
- computeFrame = false
353
350
triggerHapticFeedback ( style: . medium)
354
351
onLongPress (
355
352
MessageDisplayInfo (
You can’t perform that action at this time.
0 commit comments