Instance Method インスタンスメソッド

index(ofAccessibilityElement:)

Returns the index of the specified accessibility element.

Declaration 宣言

@MainActor func index(ofAccessibilityElement element: Any) -> Int

Parameters パラメータ

element

The accessibility element.

Return Value 戻り値

The index of the specified accessibility element, or NSNotFound if the element does not exist.

See Also 参照

Providing Information About Accessibility Elements