Generic Instance Method

id(_:)

Generates a uniquely identified view that can be inserted or removed.

Declaration

func id<ID>(_ id: ID) -> some View where ID : Hashable