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…

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.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture