From 9a52d40413b613d8bc4251bcacef13d4ae7975b6 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 2 Jul 2018 15:02:36 -0400 Subject: [PATCH] Tweak quoted reply layout. --- .../ConversationView/Cells/OWSQuotedMessageView.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m index f0adfd989..304a26534 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m @@ -131,6 +131,11 @@ NS_ASSUME_NONNULL_BEGIN return 8.f; } +- (CGFloat)vSpacing +{ + return 2.f; +} + - (CGFloat)stripeThickness { return 4.f; @@ -204,6 +209,7 @@ NS_ASSUME_NONNULL_BEGIN vStackView.axis = UILayoutConstraintAxisVertical; vStackView.layoutMargins = UIEdgeInsetsMake(self.textVMargin, 0, self.textVMargin, 0); vStackView.layoutMarginsRelativeArrangement = YES; + vStackView.spacing = self.vSpacing; [hStackView addArrangedSubview:vStackView]; UILabel *quotedAuthorLabel = [self configureQuotedAuthorLabel]; @@ -469,7 +475,7 @@ NS_ASSUME_NONNULL_BEGIN // Quoted Author CGFloat textWidth = 0.f; CGFloat maxTextWidth = maxWidth - result.width; - CGFloat textHeight = self.textVMargin * 2 + self.quotedAuthorHeight; + CGFloat textHeight = self.textVMargin * 2 + self.quotedAuthorHeight + self.vSpacing; { UILabel *quotedAuthorLabel = [self configureQuotedAuthorLabel];