Automated Code Fix Suggestions for Accessibility Issues in Mobile Apps
Forough Mehralian, Titus Barik, Jeff Nichols, Amanda Swearngin
TL;DR
FixAlly tackles the gap between automated accessibility scanning and actionable code fixes in mobile apps by employing a plan-localize-fix pipeline powered by a multi-agent LLM. It localizes the impacted UI element, generates multiple plausible code fixes, and validates them through a patch-build-run cycle, demonstrated on 14 SwiftUI iOS apps with a 77% plausible-fix rate and a 69.4% developer acceptance in a user study. The approach provides developers with multiple fix strategies and accompanying rationale, emphasizing localizability in source code and design integrity. Overall, the work demonstrates the feasibility and practical value of LLM-driven automated accessibility repair for mobile apps, while outlining directions for cross-platform generalization and cross-file handling.
Abstract
Accessibility is crucial for inclusive app usability, yet developers often struggle to identify and fix app accessibility issues due to a lack of awareness, expertise, and inadequate tools. Current accessibility testing tools can identify accessibility issues but may not always provide guidance on how to address them. We introduce FixAlly, an automated tool designed to suggest source code fixes for accessibility issues detected by automated accessibility scanners. FixAlly employs a multi-agent LLM architecture to generate fix strategies, localize issues within the source code, and propose code modification suggestions to fix the accessibility issue. Our empirical study demonstrates FixAlly's capability in suggesting fixes that resolve issues found by accessibility scanners -- with an effectiveness of 77% in generating plausible fix suggestions -- and our survey of 12 iOS developers finds they would be willing to accept 69.4% of evaluated fix suggestions.
