Documentation Language: Swift

Method

resolve(_:as:)

Resolves an object by its identifier with a specific type.

func resolve<T>(_ id: EUUID, as type: T.Type) -> T? where T : EObject

Parameters

id

The unique identifier of the object to resolve.

type

The expected type of the resolved object.

Return Value

The resolved object cast to the specified type, or nil if not found or wrong type.