Learn about the types and protocols that form the basis for adaptive layout in iOS, for greater control in code.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4260-mastering-auto-layout/lessons/16
Learn about the types and protocols that form the basis for adaptive layout in iOS, for greater control in code.
I am wondering why we choose enum for NavigationBarAppearance? Why donโt you use class in this scenario? Does it have any benefit?
Yes. A caseless enumeration canโt be instantiated, so itโs a clearer option for namespacing.