Fixes GridCollectionViewCell "Unable to simultaneously satisfy constraints" runtime error
This commit is contained in:
parent
731de7023f
commit
21147969ea
@ -116,6 +116,7 @@ class GridCollectionViewCell: UICollectionViewCell
|
|||||||
self.imageViewWidthConstraint.isActive = true
|
self.imageViewWidthConstraint.isActive = true
|
||||||
|
|
||||||
self.imageViewHeightConstraint = self.imageView.heightAnchor.constraint(equalToConstant: self.maximumImageSize.height)
|
self.imageViewHeightConstraint = self.imageView.heightAnchor.constraint(equalToConstant: self.maximumImageSize.height)
|
||||||
|
self.imageViewHeightConstraint.priority = UILayoutPriority(999) // Fixes "Unable to simultaneously satisfy constraints" runtime error when inserting new grid row.
|
||||||
self.imageViewHeightConstraint.isActive = true
|
self.imageViewHeightConstraint.isActive = true
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user