From 31443b56879dcc3c62a9dba0d8c8fc0f0d2c2b20 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 12 Jun 2018 13:42:10 -0400 Subject: [PATCH] Clean up ahead of PR. --- Signal/src/ViewControllers/HomeView/HomeViewCell.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Signal/src/ViewControllers/HomeView/HomeViewCell.m b/Signal/src/ViewControllers/HomeView/HomeViewCell.m index 16c4dc067..67bb8382d 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewCell.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewCell.m @@ -79,6 +79,13 @@ NS_ASSUME_NONNULL_BEGIN [self.avatarView autoVCenterInSuperview]; [self.avatarView setContentHuggingHigh]; [self.avatarView setCompressionResistanceHigh]; + const CGFloat kAvatarMinVMargin = 10; + [self.avatarView autoPinEdgeToSuperviewEdge:ALEdgeTop + withInset:kAvatarMinVMargin + relation:NSLayoutRelationGreaterThanOrEqual]; + [self.avatarView autoPinEdgeToSuperviewEdge:ALEdgeBottom + withInset:kAvatarMinVMargin + relation:NSLayoutRelationGreaterThanOrEqual]; self.payloadView = [UIStackView new]; self.payloadView.axis = UILayoutConstraintAxisVertical;