I need to find table view content size because I need to increase table height based on number of rows. I used table view automatic dimension for automatically increase the cell height based cell contents. So I used to find table content size after table view loads completely then we can adjust the table view size.
I used below code for get the table view content size,
Print(tableview.contentSize)
but it gives wrong size. So I have researched some links then I found this https://forums.developer.apple.com/thread/81895. In that link, you can see Apple says we need to mention estimated table height as 0 for get the correct table view content size. But it gives wrong content size again. For Example,
the table view load 5 rows and content size height was 100.0 means but it gives only 80.0. I don't know how to find the exact table view content size. Could you help on this ?