dmytro-anokhin/url-image

tvOS, first image in HStack temporarily goes back to progress state when row is hovered.

JOyo246 opened this issue · 2 comments

‼️ Please fill in as much information as possible ‼️

Summary and/or background
tvOS, first image in HStack temporarily goes back to progress state when row is hovered.

OS and what device you are using

  • OS: tvOS
  • Device or simulator Simulator
  • Are you building a widget or an extension? no

Version of URLImage library
3.1.0

  • [ ✅] The bug is reproducible in the latest version.

What you expected would happen
To be able to scroll down and keep all images in their loaded state.

What actually happens
When scrolling down, it reloads the first image.

Sample code

URLImage(url) { _ in
    PlaceHolderImageView()
    
} failure: {error, arg  in
    PlaceHolderImageView()
    
} content: { image in
    image
        .resizable()
        .renderingMode(.original)
        .aspectRatio(1.0, contentMode: .fit)
        .frame(minWidth: 220, idealWidth: 220, maxWidth: 220, minHeight: 220, idealHeight: 220, maxHeight: 220, alignment: .center)
        .cornerRadius(15)
}.environment(\.urlImageOptions, URLImageOptions(loadOptions: [ .loadImmediately ] ))

Test data
http://srsounds.com/SR_ios_admin/index.php/endpoint/radio/getall/?id=86
(logo_url is used here)

Additional information

  • [ https://streamable.com/ynizv4] Screenshots or video demonstrating a bug;
  • Crash log;

Misc

  • [✅ ] I read the documentation and it didn't help;
  • [ ✅] I searched for similar issues.

Okay it looks like its simulator only.

Hey, thank you for reporting. I will still investigate to see what's going on. BTW, in 3.1 loadImmediately is default option.