Merged
Conversation
Replace stored async and transform closures in the metadata filter sheet with concrete source and display-style enums so SwiftUI does not ask AttributeGraph to inspect Swift 6 concurrency function metadata on iOS 17. Document the SwiftUI closure storage compatibility rule in AGENTS.md to keep similar reusable views from reintroducing the crash pattern.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Opening Filter & Sort on iOS 17 could crash inside SwiftUI AttributeGraph while it inspected Swift 6 function metadata for stored async loader closures in the metadata filter sheet. Newer systems did not reproduce the same runtime failure, which made the issue easy to miss outside iOS 17 validation.
Approach
Replace the reusable metadata filter sheet's stored async and transform closures with concrete source and display-style enums. The sheet still loads the same publishers, authors, genres, tags, and languages, but the SwiftUI view value no longer exposes async closure fields to AttributeGraph. The compatibility rule is also documented in AGENTS.md so future reusable SwiftUI views avoid this pattern.
Scope
Validation