From 21147969eaa07b9976ed37ca9a47bdbe561e5572 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Fri, 16 Jun 2023 15:18:02 -0500 Subject: [PATCH] Fixes GridCollectionViewCell "Unable to simultaneously satisfy constraints" runtime error --- Delta/Components/Collection View/GridCollectionViewCell.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Delta/Components/Collection View/GridCollectionViewCell.swift b/Delta/Components/Collection View/GridCollectionViewCell.swift index f88bc2b..ccdc164 100644 --- a/Delta/Components/Collection View/GridCollectionViewCell.swift +++ b/Delta/Components/Collection View/GridCollectionViewCell.swift @@ -116,6 +116,7 @@ class GridCollectionViewCell: UICollectionViewCell self.imageViewWidthConstraint.isActive = true 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