diff --git a/Yep/Views/Cells/Feed/FeedCell.swift b/Yep/Views/Cells/Feed/FeedCell.swift index 032de8c6..8c70c20f 100644 --- a/Yep/Views/Cells/Feed/FeedCell.swift +++ b/Yep/Views/Cells/Feed/FeedCell.swift @@ -16,6 +16,8 @@ class FeedCell: FeedBasicCell { @IBOutlet weak var mediaCollectionView: UICollectionView! @IBOutlet weak var collectionViewHeight: NSLayoutConstraint! + @IBOutlet weak var leftBottomLabelTopConstraint: NSLayoutConstraint! + var tapMediaAction: ((transitionView: UIView, image: UIImage?, attachments: [DiscoveredAttachment], index: Int) -> Void)? var attachments = [DiscoveredAttachment]() { @@ -112,9 +114,9 @@ class FeedCell: FeedBasicCell { } if attachments.count > 1 { - timeLabelTopConstraint.constant = hasMedia ? (15 + feedAttachmentImageSize.height + 15) : 15 + leftBottomLabelTopConstraint.constant = hasMedia ? (15 + feedAttachmentImageSize.height + 15) : 15 } else { - timeLabelTopConstraint.constant = hasMedia ? (15 + feedAttachmentBiggerImageSize.height + 15) : 15 + leftBottomLabelTopConstraint.constant = hasMedia ? (15 + feedAttachmentBiggerImageSize.height + 15) : 15 } mediaCollectionView.hidden = hasMedia ? false : true diff --git a/Yep/Views/Cells/Feed/FeedCell.xib b/Yep/Views/Cells/Feed/FeedCell.xib index be618af9..f5d0175c 100644 --- a/Yep/Views/Cells/Feed/FeedCell.xib +++ b/Yep/Views/Cells/Feed/FeedCell.xib @@ -15,8 +15,8 @@ -