Use Image.init with bundle for watchOS > 6
Jonas1893 opened this issue · comments
Jonas Reichert commented
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