Swift protocol used to uniquely identify instances.
Identifiable
is a Swift protocol used to uniquely identify instances. You must implement the id
computed-property to satisfy the protocol requirements.
Apple's description:
A class of types whose instances hold the value of an entity with stable identity.
Commonly used in conjunction with SwiftUI's ForEach
.