I have a UITableViewCell nib that depending on the data it can show an image or not.
Below, the cell has 2 labels and at the right most the imageView. What I want to do is to remove the imageView (if no image is present on the data) and extend the Label all the way to the right.
Is there a way to have several constraint scenarios on the nib that I could activate/ deactivate?
Constraints on label1
Constraints on label2
label1
, 2. Center vertically in ContainerConstraints on imageview
Horizontal space between
label2 and imageview = 0 (priority = 250)
See the below GIF: