Contents

has(_:)

Returns a Boolean value that indicates whether the set contains a component of the given type.

Declaration

@MainActor @preconcurrency func has(_ componentType: any Component.Type) -> Bool

Parameters

  • componentType:

    A component type, like ModelComponent.Self.

Return Value

A Boolean value that’s true if the set contains a component of the given type.