@@ -18,6 +18,7 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
18
18
var factory : Factory
19
19
var channel : ChatChannel
20
20
var currentSnapshot : UIImage
21
+ var bottomOffset : CGFloat
21
22
var messageDisplayInfo : MessageDisplayInfo
22
23
var onBackgroundTap : ( ) -> Void
23
24
var onActionExecuted : ( MessageActionInfo ) -> Void
@@ -34,6 +35,7 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
34
35
channel: ChatChannel ,
35
36
currentSnapshot: UIImage ,
36
37
messageDisplayInfo: MessageDisplayInfo ,
38
+ bottomOffset: CGFloat = 0 ,
37
39
onBackgroundTap: @escaping ( ) -> Void ,
38
40
onActionExecuted: @escaping ( MessageActionInfo ) -> Void
39
41
) {
@@ -45,6 +47,7 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
45
47
self . channel = channel
46
48
self . factory = factory
47
49
self . currentSnapshot = currentSnapshot
50
+ self . bottomOffset = bottomOffset
48
51
self . messageDisplayInfo = messageDisplayInfo
49
52
self . onBackgroundTap = onBackgroundTap
50
53
self . onActionExecuted = onActionExecuted
@@ -242,7 +245,7 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
242
245
messageDisplayInfo. showsMessageActions ? messageActionsSize : userReactionsPopupHeight
243
246
var originY = messageDisplayInfo. frame. origin. y
244
247
let minOrigin : CGFloat = 100
245
- let maxOrigin : CGFloat = screenHeight - messageContainerHeight - bottomPopupOffset - minOrigin
248
+ let maxOrigin : CGFloat = screenHeight - messageContainerHeight - bottomPopupOffset - minOrigin - bottomOffset
246
249
if originY < minOrigin {
247
250
originY = minOrigin
248
251
} else if originY > maxOrigin {
0 commit comments