Skip to content

Project Structure: How can App.swift import ComposableArchitecture? #141

Answered by mbrandonw
oco-adam asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @oco-adam, the reason we can import ComposableArchitecture in App.swift (as well as all of these imports) is because Xcode/SPM picks up transitive dependencies. So, since AppFeature depends on ComposableArchitecture, and the app target depends on AppFeature, we get to import all TCA in the app target.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by oco-adam
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants