Contents

HasHierarchy

An interface that provides access to a parent entity and child entities.

Declaration

@MainActor @preconcurrency protocol HasHierarchy : Entity

Mentioned in

Overview

All entities automatically adopt this protocol because the Entity base class does. This adoption gives all entities a collection of methods for managing the hierarchy.

Topics

Managing the parent

Managing children

See Also

Relating entities