Fix crash when displaying posts with more than 4 attachments

This commit is contained in:
Shadowfacts 2019-11-17 11:32:35 -05:00
parent c91a7baaa6
commit 56d4a6690f
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ class AttachmentsContainerView: UIView {
moreLabel.textColor = .secondaryLabel moreLabel.textColor = .secondaryLabel
moreLabel.textAlignment = .center moreLabel.textAlignment = .center
moreLabel.translatesAutoresizingMaskIntoConstraints = false moreLabel.translatesAutoresizingMaskIntoConstraints = false
moreView.addSubview(moreLabel)
moreView.accessibilityLabel = moreLabel.text moreView.accessibilityLabel = moreLabel.text
let topLeft = createAttachmentView(index: 0) let topLeft = createAttachmentView(index: 0)