How to make an expandable and collapsable UITableView (parent and child cells) in swift?
<p>I wanted to have a <code>UITableView</code> which is able to expand and collapse while clicking on cells.</p>

<p><a href="https://i.stack.imgur.com/5O0et.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5O0et.png" alt="enter image description here"></a></p>

<p>When I load the page, I want the Tableview to be expanded like this and function collapse and expand by clicking on the header(see the date).</p>

<p>Any help is appreciated.</p>