From 4a3fe4cdeb024d88463655a55ed6f8ff8ecf21db Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 29 Aug 2022 14:52:36 +1000 Subject: [PATCH] tweak: view height of reaction user list --- Session/Conversations/Views & Modals/ReactionListSheet.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Session/Conversations/Views & Modals/ReactionListSheet.swift b/Session/Conversations/Views & Modals/ReactionListSheet.swift index 6ad1191be..c88c914b2 100644 --- a/Session/Conversations/Views & Modals/ReactionListSheet.swift +++ b/Session/Conversations/Views & Modals/ReactionListSheet.swift @@ -141,7 +141,9 @@ final class ReactionListSheet: BaseVC { private func setUpViewHierarchy() { view.addSubview(contentView) contentView.pin([ UIView.HorizontalEdge.leading, UIView.HorizontalEdge.trailing, UIView.VerticalEdge.bottom ], to: view) - contentView.set(.height, to: 490) + // Emoji collectionView height + seleted emoji detail height + 5 × user cell height + footer cell height + bottom safe area inset + let contentViewHeight: CGFloat = 100 + 5 * 65 + 45 + UIApplication.shared.keyWindow!.safeAreaInsets.bottom + contentView.set(.height, to: contentViewHeight) populateContentView() }