Contents

indirectScribbleInteraction(_:isElementFocused:)

Asks the delegate if an element is currently focused, according to the internal state of the interaction’s view.

Declaration

func indirectScribbleInteraction(_ interaction: any UIInteraction, isElementFocused elementIdentifier: Self.ElementIdentifier) -> Bool

Parameters

  • interaction:

    The interaction asking for the focused state.

  • elementIdentifier:

    The identifier of the element the interaction is asking about.

Return Value

Returns true if the element is the one currently focused.

See Also

Managing Focus