My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How can I reuse code and remove duplicate code while using table views in different pages? [Swift]

Hasan's photo
Hasan
·May 23, 2016

I have 3 table views in 3 different pages, almost identical layout and functionality. I have duplicate codes for all three pages doing the same thing. What's the best way to reuse code and remove duplicity?