Skip to content

Commit

Permalink
do not crash if value false
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergii Iastremskyi committed Sep 18, 2024
1 parent 81b2805 commit 5b89c36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Sources/Private/CoreAnimation/CoreAnimationLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
""")
}
}
}

Expand Down

0 comments on commit 5b89c36

Please sign in to comment.