We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if
1 parent e93eaa0 commit 1766731Copy full SHA for 1766731
Sources/CodeEditTextView/EmphasisManager/EmphasisManager.swift
@@ -330,8 +330,8 @@ public final class EmphasisManager {
330
331
layer.add(fadeAnimation, forKey: "fadeOutAnimation")
332
333
- if let textLayer = textLayer {
334
- if let textFadeAnimation = fadeAnimation.copy() as? CABasicAnimation {
+ if let textLayer = textLayer, let textFadeAnimation = fadeAnimation.copy() as? CABasicAnimation {
+ textLayer.add(textFadeAnimation, forKey: "fadeOutAnimation")
335
textLayer.add(textFadeAnimation, forKey: "fadeOutAnimation")
336
}
337
0 commit comments