4 Swift Protocols Commonly Used in SwiftUI

Equatable, Comparable, Identifiable, and Hashable solutions

Mark Lucking
Better Programming
Published in
4 min readJan 3, 2022

--

Photo by Nick Fewings on Unsplash

Protocols are most certainly not new to iOS or its cousin OS X; indeed, the delegate protocol is the bread and butter of more than half of the frameworks, although with the new async/await coming into the picture, it may change in the coming years. That said, protocols seem to be changing…

--

--

Coding for 35+ years, enjoying using and learning Swift/iOS development. Writer @ Better Programming, @The StartUp, @Mac O’Clock, Level Up Coding & More