Expandable UITableViewCell in Swift 5 (Simple Way)

Pavlos Simas
Dev Genius
Published in
4 min readNov 16, 2021

--

We will see how to create expandable tableview cells without using sections.

Use UIStackView!!!

Let’s first create our cell (we will call it ExpandableFaqTableViewCell)

This is how the xib should look like. Now let’s put an UIStackView inside the ContentView and add the necessary constraints.

--

--

iOS Developer, with passion about Development, Marketing and Finance. Join Medium from the following link: https://simaspavlos.medium.com/membership