Sharing code between View Controllers
It is quite common that you are building a iOS or macOS application, with several views and view controllers that look very similarly. The legacy way is to copy the code and make the minor changes to create the variations.