Protocol

Identifiable

A class of types whose instances hold the value of an entity with stable identity.

Declaration

protocol Identifiable

Topics

Specifying the Associated Type

associatedtype ID

A type representing the stable identity of the entity associated with self.

Required.

Specifying the Identified Item

var id: Self.ID

The stable identity of the entity associated with self.

Required. Default implementation provided.

See Also

Lists and Scroll Views

struct List

A container that presents rows of data arranged in a single column.

protocol DynamicViewContent

A type of view that generates views from an underlying collection of data.

struct ForEach

A structure that computes views on demand from an underlying collection of of identified data.

struct ScrollView

A scroll view.