Type Safely

Type Safely

Using protocols to simplify SwiftUI

Daily Coding Tip 004

Type Safely's avatar
Type Safely
Dec 22, 2020
∙ Paid
Image by carloyuen from Pixabay

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…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture