Implementing an expandable table cell may cause a headache (as a programming at all) In this article we are going to make such cell in a pretty simple way.
First, we need to define a data to work with. They will be represented by
ViewData class serves a decorator.
View controller is pretty simple. Acts as a
tableView, provides data and methods implementations.
tableView(_:cellForRowAt:) is the most interesting here. it’s arguments are
ViewData object and closure. The latter accepts in parameters another closure, called callback. This closure is configured within cell, what we will…
iOS developer, student