Skip to content

Accessibility issue in TwoLineTitleView #1926

@huahuahu

Description

@huahuahu

Environment Information

  • Platform:
    • iOS
    • macOS
  • Package version(s): 0.23.0 using SwiftPM
  • Xcode and OS versions: Xcode 15.0 in MacOS 13.6.2, target is iPhone simulator 17.0

Please provide a reproduction of the bug:

Just create a TwoLineTitleView in empty view controller and check accessibility of the TwoLineTitleView.

    func addTwoLineView() {
        let twolineView = TwoLineTitleView()
        twolineView.frame = CGRect(x: 30, y: 100, width: 200, height: 40)

        twolineView.setup(title: "title", subtitle: "subtitle", interactivePart: .subtitle)
        twolineView.delegate = self
        view.addSubview(twolineView)
}

Actual behavior:

The TwoLineTitleView should act as two a11y element and tap each one would trigger the twoLineTitleViewDidTapOnTitle method.
image

Expected behavior:

The TwoLineTitleView should act as a whole a11y element as in teh Photo app
image

Priorities and help requested:

Are you willing to submit a PR to fix?: No

Requested priority: Normal

Products/applications affected: Not yet

Additional thought

I am thing what's the expected behavior here. Should we treate it as a whole element or not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions