Have you ever tried to include TableView in UITableViewCell but failed, this time I’ll give an example of one way to create dynamic size for tableview in UITableViewCell
# Use this custom TableView size
Step one create table view and custom table view cell, in that cell there is another table view, the following is how to make the table in the cell auto height. add the following custom table into the custom class.
This table view custom function to set size to auto height for table inside cell tableview
For second cell I give name SecondTableViewCell, when you have dynamic data you can use this “.layoutIfneeded()”