I need to reduce the height of the UITableView custom cell, if their is no data for the optional labels to show. following image would be a great help to understand
I tried assigning constraints constant value to 0 and 20 for the pre/post Instruction's respective top/bottom on the availability of data, it's working perfect when both optional values (pre/post instructions) are available, but in case of missing anyvalue the cell is picking the minimum height see below
Altough in heightForRowAt method i'm returning
return UITableViewAutomaticDimension
If any of the optional value (On the yellow label) is missing, I need to manage the exterior space of that label in the cell, Please suggest me a better solution