Contents

accessibilityIdentifier(_:isEnabled:)

Uses the string you specify to identify the view. Use this value for testing. It isn’t visible to the user.

Declaration

nonisolated func accessibilityIdentifier(_ identifier: String, isEnabled: Bool = true) -> some TabContent<Self.TabValue>

Parameters

  • identifier:

    The accessibility identifier to apply.

  • isEnabled:

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