I have a custom tableViewCell and I am trying to set up constraints so that I can use tableView.rowHeight = UITableViewAutomaticDimension.
For simplicity sake let’s say I have a uiTableViewCell whose content view contains only UIImageView. The UIImageView is constrained to maintain a certain aspect ratio and is pinned to the left, right, and top of the cell content view. I want my content view’s height to be driven by the height of the UIImage View.
I’ve been trying to solve this by pinning the content view bottom to the bottom of the UIIMage view, but I’m getting 'unable to satisfy all constraints' errors at runtime. What’s the right way to set this up?