How can I reuse code and remove duplicate code while using table views in different pages? [Swift]
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?