Contents

init(entities:)

Creates a new entity identifier collection from entities.

Declaration

init(entities: [Entity])

Parameters

  • entities:

    The entities to add to the collection.

Discussion

This initializer adds the identifier for each entity to the collection and caches the entity instances for fast retrieval later.