File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Sources/StreamChatSwiftUI/ChatChannel/Reactions Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
111
111
)
112
112
. frame (
113
113
width: messageDisplayInfo. frame. width,
114
- height: messageDisplayInfo . frame . height
114
+ height: messageContainerHeight
115
115
)
116
116
117
117
if messageDisplayInfo. showsMessageActions {
@@ -158,6 +158,13 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
158
158
}
159
159
}
160
160
161
+ private var messageContainerHeight : CGFloat {
162
+ let screenHeight = UIScreen . main. bounds. size. height
163
+ let maxAllowed = screenHeight / 2
164
+ let containerHeight = messageDisplayInfo. frame. height
165
+ return containerHeight > maxAllowed ? maxAllowed : containerHeight
166
+ }
167
+
161
168
private var popInAnimation : Animation {
162
169
. spring( response: 0.2 , dampingFraction: 0.7 , blendDuration: 0.2 )
163
170
}
You can’t perform that action at this time.
0 commit comments