Using protocols to simplify SwiftUI
Daily Coding Tip 004
Protocol-oriented programming allows us to work more directly with value types, such as structures, instead of reference types like classes. Structures cannot inherit from a supertype, and so they do not inherit any attributes from an ancestor. SwiftUI relies on conformance to the View protocol instead, which specifies att…



