It’s great to have SPM managing resources and localization!
I would still like to have my library available with other dependencies managers (can I mention CocoaPods here?), so I would need to detect if Bundle.module is available at compile time. Otherwise, I’ll just get an error like this:
I would still like to have my library available with other dependencies managers (can I mention CocoaPods here?), so I would need to detect if Bundle.module is available at compile time. Otherwise, I’ll just get an error like this:
Is there something like if @available(SPM), or if Bundle.hasMember(.module)? Any other solution?Type 'Bundle' has no member 'module'