Swift, creating views with table view controller

Im not sure if this is the right place to post this kind of question, but, I heard from a colleage that he creates all his views in a table view and for each item creates a separate cell. e.g. A title would be a different cell, image a different cell, etc. Is this a normal practice or is this something that should be avoided? The benefit of this method seems to be that you dont have to worry too much about layout and constraints, the problem in my opinion looks like that it becomes a lot harder to manage your code base.

Apr 15, 2025 - 01:33
 0
Swift, creating views with table view controller

Im not sure if this is the right place to post this kind of question, but, I heard from a colleage that he creates all his views in a table view and for each item creates a separate cell.

e.g. A title would be a different cell, image a different cell, etc.

Is this a normal practice or is this something that should be avoided?

The benefit of this method seems to be that you dont have to worry too much about layout and constraints, the problem in my opinion looks like that it becomes a lot harder to manage your code base.