Tried to load WebP Image like in this article,
https://www.hackingwithswift.com/forums/swiftui/loading-images/3292
is working fine in iOS App target but not in WatchOS Extension target.
if let image = UIImage(data: loader.data) {
return Image(uiImage: image)
} else {
return failure
}
UIImage(data: loader.data) will always nil in WatchOS extension target
Can someone help me out how we can load webp image in WatchApps?
Used https://github.com/SDWebImage/SDWebImageWebPCoder swift Package Manger, To load WebP image in WatchApp