Command

protocol Command : Sendable

Basic interface for Trait commands.

  • Identifier for this command.

    The Command ID is appended onto the Trait ID of the trait this command belongs to.

    Declaration

    Swift

    static var identifier: ScopedCommandID { get }
  • requestField(id:)

    Default implementation

    Returns the field corresponding to the given command request field ID.

    Default Implementation

    Returns the field corresponding to the given command request field ID.

    Declaration

    Swift

    static func requestField(id: UInt32) -> (any Field)?