Skip to content

The images in WebP format are not loading or displaying correctly on iOS 15, but they work fine on iOS 17. I haven’t tested on iOS 16 yet. #336

Open
@sangampokharel

Description

@sangampokharel

Steps to Reproduce:

  1. Run the app on an iOS 15 device but works perfectly in iOS 17
  2. Attempt to load a WebP image using SDWebImageSwiftUI.
  3. Observe that the image does not display as expected.

Expected Behavior:
WebP images should load and display correctly on iOS 15, similar to how they work on iOS 17.

Actual Behavior:
The WebP images are not loading or displaying correctly on iOS 15.

Additional Information:

  • SDWebImageSwiftUI version: 2.2.7
  • iOS version: 15.x
  • WebP images are loading fine on iOS 17.
  • I have not tested on iOS 16 yet.

if let url = URL(string: "https://www.gstatic.com/webp/gallery/1.webp") {

WebImage(url:url)
.resizable()
.placeholder(Image("vendor_background_placeholder"))
.onSuccess { image, data, cacheType in
print("Image successfully loaded")
}
.onFailure(perform: { error in
print("Image loading failed (error.localizedDescription)")
})

}

in ios 17 I am seeing logs "Image loaded successfully" but in ios 15 neither success nor failure log is displayed in console

pod 'SDWebImageSwiftUI'

Please let me know if there are any additional steps I should take or if there are any workarounds available.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    apple bugApple's bug that need workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions