mac-cain13 / R.swift

Strong typed, autocompleted resources like images, fonts and segues in Swift projects
MIT License
9.5k stars 764 forks source link

Modularized app: make R type public. #900

Closed f-gonzalez closed 4 months ago

f-gonzalez commented 4 months ago

I have an app divided by different modules, one of which is the "Resources" module where it has the Assets, localization strings, fonts, etc.

I wanted to leave the R.generated inside the module (framework Resources, since everything related lives there). But I can't, because the R type is internal, I cannot access it from the other modules / main app. FYI The compile error when the type is internal (the default by Swift) is "Cannot find R in scope"

Can we add the public ?

f-gonzalez commented 4 months ago

Nevermind, I found the FAQ in which you can add the --access-level public.