'How to create generic utility to give style like fonts, colors to UI elements like button, label, textfiled, textview in swift

I am creating iOS app and I want to manage UI styling programmatically instead of storyboards. I have lots of screens in my app and I don't want to go every storyboard files when I need to change font size or colors in my app. I want to create a generic solution to set styling in my app programatically. How can I achieve this type of functionality?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source