Replies: 1 comment 3 replies
-
I do have thoughts! I first talked about this with someone back in the SwiftPM Library days! Their use case was actually for filtering on imported frameworks as they have a rule that any dependency that imported a UI framework (UIKit at the time) is more trouble than it's worth. It's not a bad rule, either! However, before we talk about filtering, we need to find and store the data and figure out how/where to display it! You're almost certainly correct that the answer to collecting this data would become part of the build system, but before diving into that, we'd want to work towards a proof of concept that gets the data out in any format. We can then decide the usefulness of what we can extract and start planning the feature. If you'd like to start investigating that proof of concept, that'd be some valuable work! 🚀 |
Beta Was this translation helpful? Give feedback.
-
The very specific use case that I'm looking for here is the ability to find packages easily which support SwiftUI, naively by the fact that they import SwiftUI. (or as the tables slowly turn, packages which support UIKit or AppKit or maybe I want to find packages relating to ARKit or AVFoundation).
This is very likely some form of static analysis which would be part of the build system to identify imports within the codebase, find all unique references, and report that back.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions