mac-cain13 / R.swift

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

`R.swift` macOS codegen support? #835

Closed ostaptyv closed 1 year ago

tomlokhorst commented 1 year ago

Because those are types that exist on macOS.

If you have a specific feature request for additional integrations, please create a specific issue, or a PR.

ostaptyv commented 1 year ago

Sorry for not writing a detailed issue — I should've expanded on the topic, really. What I was trying to say is that on macOS you don't have these neat methods which the codegen makes on iOS. I have to write my own extension on ColorResource, for example, to be able to use the R.swift as on iOS Here I've attached a sample project which demonstrates the issue. The code is in ViewController.swift:

TestRSwiftCodegen.zip