What’s Changed
-
SwiftUI View Filtering:
The bot now only processes Swift files that both import SwiftUI and declare a struct conforming to theViewprotocol (e.g.,struct MyView: View).
This prevents non-view files (such as models or utilities) from being unnecessarily processed, making the action more efficient and accurate. -
Internal Improvements:
- Updated the file detection logic in the entrypoint script to use a two-step
grepfor bothimport SwiftUIandstruct ...: View. - No changes to the accessibility logic or output format.
- Updated the file detection logic in the entrypoint script to use a two-step
Upgrade Notes
- No action required for users.
- The action will now skip Swift files that do not contain SwiftUI views, reducing noise and irrelevant PRs.