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…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.