I have a UIView that changes height based on the amount of content in it. It's basically a list of tags. I am not sure how to adjust the row height based on the height of the tagView. Also when it goes to a smaller iPhone screen the height of the tagView also adjusts. I know how to work with images as this example demonstrates very well: How to resize UIImageView based on UIImage's size/ratio in Swift 3?. But I am not sure how to work with a tagView which is a type of UIView
.
I am using UITableViewAutomaticDimension
but this is not affecting the cell which contains the tags.
As you can see below the content just goes over the cell: