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.

struct ForEach

The collection of underlying identified data that SwiftUI uses to create views dynamically.

struct ScrollView

A scrollable view.

protocol DynamicViewContent

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

enum Axis

The horizontal or vertical dimension in a 2D coordinate system.