From 7289c5064a2b5c00be3d1a2354bfe6bcc2369d46 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Fri, 26 Feb 2021 14:11:58 +1100 Subject: [PATCH] Fix margins --- Session/Conversations/Input View/InputView.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Session/Conversations/Input View/InputView.swift b/Session/Conversations/Input View/InputView.swift index bd236feca..d8dcf6186 100644 --- a/Session/Conversations/Input View/InputView.swift +++ b/Session/Conversations/Input View/InputView.swift @@ -53,11 +53,7 @@ final class InputView : UIView, InputViewButtonDelegate, InputTextViewDelegate, private lazy var inputTextView = InputTextView(delegate: self) - private lazy var additionalContentContainer: UIView = { - let result = UIView() - result.heightAnchor.constraint(greaterThanOrEqualToConstant: 4).isActive = true - return result - }() + private lazy var additionalContentContainer = UIView() // MARK: Settings private static let linkPreviewViewInset: CGFloat = 6 @@ -108,7 +104,7 @@ final class InputView : UIView, InputViewButtonDelegate, InputTextViewDelegate, addSubview(mainStackView) mainStackView.pin(.top, to: .bottom, of: separator) mainStackView.pin([ UIView.HorizontalEdge.leading, UIView.HorizontalEdge.trailing ], to: self) - mainStackView.pin(.bottom, to: .bottom, of: self, withInset: -2) + mainStackView.pin(.bottom, to: .bottom, of: self) // Mentions insertSubview(mentionsViewContainer, belowSubview: mainStackView) mentionsViewContainer.pin([ UIView.HorizontalEdge.left, UIView.HorizontalEdge.right ], to: self)