mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
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:
@@ -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.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user