Contents

accessibilityIdentifier(_:isEnabled:)

Uses the string you specify to identify the view.

Declaration

nonisolated func accessibilityIdentifier(_ identifier: String, isEnabled: Bool) -> ModifiedContent<Content, Modifier>

Parameters

  • identifier:

    The accessibility identifier to apply.

  • isEnabled:

    If true the accessibility identifier is applied; otherwise the accessibility identifier is unchanged.

Discussion

Use this value for testing. It isn’t visible to the user.