From 5b89c36a39653fc32620303e863cc8f2e55937bc Mon Sep 17 00:00:00 2001 From: Sergii Iastremskyi Date: Wed, 18 Sep 2024 23:12:06 +0300 Subject: [PATCH 1/2] do not crash if value false --- 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..3dc99e072d 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`) + """) + } } } From fc9eda05943ce417f577400ec9c99d7574ea9105 Mon Sep 17 00:00:00 2001 From: Sergii Iastremskyi Date: Thu, 19 Sep 2024 00:04:10 +0300 Subject: [PATCH 2/2] fixed identation --- Sources/Private/CoreAnimation/CoreAnimationLayer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Private/CoreAnimation/CoreAnimationLayer.swift b/Sources/Private/CoreAnimation/CoreAnimationLayer.swift index 3dc99e072d..2cd7f8e4f9 100644 --- a/Sources/Private/CoreAnimation/CoreAnimationLayer.swift +++ b/Sources/Private/CoreAnimation/CoreAnimationLayer.swift @@ -426,8 +426,8 @@ extension CoreAnimationLayer: RootAnimationLayer { set { if newValue { logger.assertionFailure(""" - The Core Animation rendering engine currently doesn't support `respectAnimationFrameRate`) - """) + The Core Animation rendering engine currently doesn't support `respectAnimationFrameRate`) + """) } } }