SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

Image Rendering Issues on Apple TV HD with tvOS 18.4 Beta

Open sofia-paiva-alb opened this issue 9 months ago • 2 comments

I’m encountering rendering issues when using SDWebImage to load images in a SwiftUI app on Apple TV HD devices running tvOS 18.4 beta (22L5240e). The images experience color banding, artifacting, and partial transparency, with parts of the screen obscured by a grey background (capturing as black in screenshots).

This contrasts with using AsyncImage, which renders correctly under the same conditions. The issue escalates to temporary hangs (4-5 seconds) and, in one case, a fully black screen requiring a factory reset. I’ve replicated this on two Apple TV HD devices but not on Apple TV 4K.

I’ve also filed a related issue with Apple’s Feedback Assistant to investigate potential tvOS beta regressions, but I suspect SDWebImage’s image processing might be amplifying the problem on this platform.

Steps to Reproduce:

  1. Set up an Apple TV HD (4th generation) with tvOS 18.4 beta (22L5240e).
  2. Build and run the attached sample project "Images Box HD.zip" (SwiftUI app with a LazyHStack of 4 buttons loading images via SDWebImage from a server).
  3. Observe rendering—cells show color banding and artifacting; parts of the screen display a grey background (captures as black); expect 4-5 second hangs and, occasionally, a full black screen.

Expected Behavior:

All four cells should render fully and accurately, with no distortions, grey/black backgrounds, or performance issues.

Actual Behavior:

All cells render but are affected by color banding, artifacting, and partial transparency; parts of the screen appear as a grey background (capturing as black in screenshots), with occasional 4-5 second hangs.

Additional Notes:

  • Not a hardware issue—tested with multiple HDMI cables and TVs, same result.
  • Replicated on two Apple TV HD devices with tvOS 18.4 beta; unable to replicate on Apple TV 4K or simulator.
  • Issue persists when built with Xcode 16.2 (16C5032a) and 16.3 beta 2 (16E5121h).
  • Distortions and background issues are consistent across launches.

Image

Images Box HD.zip

sofia-paiva-alb avatar Mar 17 '25 15:03 sofia-paiva-alb

Does this issue only exists on tvOS Beta ? Not tvOS 18.0 (for example)

dreampiggy avatar Mar 18 '25 03:03 dreampiggy

Yes, only after tvOS 18.4 beta 3 (22L5240e). Just tested beta 4 (22L5250a) and still happens.

sofia-paiva-alb avatar Mar 18 '25 09:03 sofia-paiva-alb