SwiftGen / SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Image.init with bundle for watchOS > 6

Jonas1893 opened this issue · comments

Follow up to #275

Since watchOS 6 there is now a init with bundle parameter available on watchOS

#elseif os(watchOS)
      let image = Image(named: name, in: bundle, with: nil)
#endif

I stumbled over this as I am developing a CocoaPod for watchOS platform which uses SwiftGen. If this pod is being integrated into an app it currently is not able to find the image because currently the init without bundle param is being used by SwiftGen