From 9e8cd70efd2396f464ace41ea95b803cf8e90f87 Mon Sep 17 00:00:00 2001 From: DarkSatyr Date: Thu, 19 Sep 2024 00:39:13 +0300 Subject: [PATCH] Don't asset when setting `respectAnimationFrameRate = false` on Core Animation engine (#2482) --- Sources/Private/CoreAnimation/CoreAnimationLayer.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/Private/CoreAnimation/CoreAnimationLayer.swift b/Sources/Private/CoreAnimation/CoreAnimationLayer.swift index 0d7e9ac76b..2cd7f8e4f9 100644 --- a/Sources/Private/CoreAnimation/CoreAnimationLayer.swift +++ b/Sources/Private/CoreAnimation/CoreAnimationLayer.swift @@ -424,9 +424,11 @@ extension CoreAnimationLayer: RootAnimationLayer { var respectAnimationFrameRate: Bool { get { false } set { - logger.assertionFailure(""" - The Core Animation rendering engine currently doesn't support `respectAnimationFrameRate`) - """) + if newValue { + logger.assertionFailure(""" + The Core Animation rendering engine currently doesn't support `respectAnimationFrameRate`) + """) + } } }