Restrict the dynamic range of avatars to prevent them from displaying HDR content.

It makes no sense to scroll through the room list/timeline and the screen to be going in and out of HDR.
This commit is contained in:
Doug
2026-05-29 12:17:45 +01:00
committed by Stefan Ceriu
parent 0c1894e175
commit 0c9c06047a
@@ -60,6 +60,7 @@ struct LoadableAvatarImage: View {
.frame(width: frameSize, height: frameSize)
.background(Color.compound.bgCanvasDefault)
.avatarShape(shape, scaledSize: _frameSize)
.allowedDynamicRange(.standard) // Prevent avatars from triggering HDR display.
.environment(\.shouldAutomaticallyLoadImages, true) // We always load avatars.
}