How to create a section of StaticTableView with variable rows in Swift/xCode? : so basically I have a view controller with a static table view with 2 sections. the first section will have 1 row and represent a main category

I want the second section to have variable amount of rows depending on how many entries the user has for that category; so if the category is "Activities" and they have "Baseball, softball" as activities I want there to be 2 rows in that section

how do you do this? it keeps crashing when I code it