Skip to content

Commit

Permalink
Add accessibility identifier to Apple Pay pre-page root view (#1963)
Browse files Browse the repository at this point in the history
# Summary

Our current system to build accessibility identifier in runtime doesn't
really work nicely when root view
doesn't have an identifier.

`PreApplePayView` is an "orphan" view that is presented using abstract
`ADYViewController` and doesn't have and shouldn't have any
accessibility logic. It's up to a child view to decide and while we
don't have many such cases, it seems to be one of them.

## Before
`<Adyen.PreApplePayView: 0x103374f00; frame = (0 0; 0 0); layer =
<CALayer: 0x60000036b900>>.applePayButton`
## After
`adyen.preApplePay.applePayButton`

# Ticket

<ticket>
COIOS-000
</ticket>
  • Loading branch information
atmamont authored Jan 27, 2025
1 parent a69300e commit b237573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AdyenDropIn/Views/PreApplePayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ internal final class PreApplePayView: UIView, Localizable {
}

private func buildUI() {
accessibilityIdentifier = "adyen.preApplePay"

addButton()
addHintLabel()
}
Expand Down

0 comments on commit b237573

Please sign in to comment.