Working with SwiftUI Lists?
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 705
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
I wonder if you ever got Hammer to work with SwiftUI Lists. We've played around with the .accessibiliy(identifier:) View modifier and that has worked for creating UI Tests within Xcode, however when we tried to locate the Lists with Hammer we seem to have found that no UIViews in the view hierarchy are given the accessibility identifiers we gave to the List Views.
Just to move forward, I've used the .accessibility(label:) view modifier as well and written an extension on UIView which recursively hunts all subviews for the first UIView matching a given test and tested the UIView.accessibilityLabel instead. At least once the UIView is identified we can then use it with Hammer.
Have you folks tried hunting SwiftUI-built objects much and had you found Lists don't play nicely?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names SwiftUI Lists, Hammer, .accessibility(identifier:), and UIView accessibility labels, but no repository file or test. Start by reproducing whether Hammer can locate a SwiftUI List by its accessibility identifier; done means the List can be found without relying on a recursive UIView search.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100