I have Tableview for showing food orders placed by clients. which contains Horizontal UIStackview
. In UIStackView
In UIStackview
Why don't you do it based on the rowcount of the inner tableView for example let's say your inner tableview has a rowheight of 30 points than to set the parenttableview rowheight all you have to do is to multiply the rowcount of the child tableview by the rowheight and you will get exactly what you want.