/BaseExampleTVC

Inheritance example of UITableViewController (Swift)

Primary LanguageSwift

Swift - iOS: How to refactor simular instances of UITableViewController

This example shows different approaches to reduce code repetition.

Code

Please compare the starting code with these different approaches:

Object orientated programming

Generic data source

Acknowledgement

Many thanks go to https://github.com/helje5

Feel free to push your appraoch.