From cde1c3fb7c64e4afe70dd8478ceadd8f378aa7c5 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 22 Jun 2018 10:37:33 -0600 Subject: [PATCH] Fix: iOS10 was not respecting margins with our homebrew pin method // FREEBIE --- SignalMessaging/Views/ContactCellView.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SignalMessaging/Views/ContactCellView.m b/SignalMessaging/Views/ContactCellView.m index 5b059aba4..a0c756657 100644 --- a/SignalMessaging/Views/ContactCellView.m +++ b/SignalMessaging/Views/ContactCellView.m @@ -94,8 +94,9 @@ const CGFloat kContactCellAvatarTextMargin = 12; hStackView.distribution = UIStackViewDistributionFill; [self addSubview:hStackView]; [hStackView autoVCenterInSuperview]; - [hStackView autoPinLeadingToSuperviewMargin]; - [hStackView autoPinTrailingToSuperviewMargin]; + [hStackView autoPinEdgeToSuperviewMargin:ALEdgeLeading]; + [hStackView autoPinEdgeToSuperviewMargin:ALEdgeTrailing]; + // Ensure that the cell's contents never overflow the cell bounds. [hStackView autoPinEdgeToSuperviewMargin:ALEdgeTop relation:NSLayoutRelationGreaterThanOrEqual]; [hStackView autoPinEdgeToSuperviewMargin:ALEdgeBottom relation:NSLayoutRelationGreaterThanOrEqual];