From 2c59b1bf13df83496708fc5cdf6f666f541ce145 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 7 Feb 2019 08:23:22 -0700 Subject: [PATCH] fix iPhoneX layout --- .../ConversationView/ConversationInputToolbar.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationInputToolbar.m b/Signal/src/ViewControllers/ConversationView/ConversationInputToolbar.m index e4eed46d0..791564043 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationInputToolbar.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationInputToolbar.m @@ -769,7 +769,8 @@ const CGFloat kMaxTextViewHeight = 98; [sendVoiceMemoButton setTitleColor:UIColor.ows_signalBlueColor forState:UIControlStateNormal]; sendVoiceMemoButton.alpha = 0; [self.voiceMemoContentView addSubview:sendVoiceMemoButton]; - [sendVoiceMemoButton autoPinEdgesToSuperviewMarginsExcludingEdge:ALEdgeLeading]; + [sendVoiceMemoButton autoPinEdgeToSuperviewMargin:ALEdgeTrailing withInset:10.f]; + [sendVoiceMemoButton autoVCenterInSuperview]; [sendVoiceMemoButton setCompressionResistanceHigh]; [sendVoiceMemoButton setContentHuggingHigh];