forked from shadowfacts/Tusker
Fix crash when displaying posts with more than 4 attachments
This commit is contained in:
parent
c91a7baaa6
commit
56d4a6690f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue