Lately, I've been gravitating toward using storyboards as a prototyping and wireframing tool, and setting and updating my style attributes in code. I'm sharing a few approaches I've come across recently. How exactly they're applied in practice is up to the individual developer or team, but hopefully someone out there finds some of these tips and tricks as useful as I did. The example project includes a couple of examples that make use of:
UIAppearance
proxy- Global namespaced constants
- Setting styles attributes in property observers (
willSet
anddidSet
)
Please refer to my blog post for further elaboration of each of the above.
Would love to hear your thoughts as well as learn about other best practices out there. Please share any comments and suggestions for improvement, and pull requests are very welcome!