Extend Swift types with static parameters for reuse, consistency, and faster coding
I believe there comes a time when every developer adopts a technique for reusing common parameters. For years, I’ve been keeping all of my ”settings” in a single place i.e.
which I would use like:
label.textColor = GlobalSettings.darkRed
direction...
articles.danielkasaj.com1 min read