Post

Replies

Boosts

Views

Activity

Detect if Bundle.module is available
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: Type 'Bundle' has no member 'module' Is there something like if @available(SPM), or if Bundle.hasMember(.module)? Any other solution?
3
0
6.9k
Jul ’20