File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Sources/CodeEditTextView/EmphasisManager Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -287,8 +287,7 @@ public final class EmphasisManager {
287287
288288 if let textLayer = textLayer, let textFadeAnimation = fadeAnimation. copy ( ) as? CABasicAnimation {
289289 textLayer. add ( textFadeAnimation, forKey: " fadeOutAnimation " )
290- textLayer. add ( textFadeAnimation, forKey: " fadeOutAnimation " )
291- }
290+ textLayer. add ( textFadeAnimation, forKey: " fadeOutAnimation " )
292291 }
293292
294293 // Remove both layers after animation completes
@@ -297,7 +296,7 @@ public final class EmphasisManager {
297296 textLayer? . removeFromSuperlayer ( )
298297 }
299298 }
300-
299+
301300 /// Handles selection of text ranges for emphases where select is true
302301 private func handleSelections( for emphases: [ Emphasis ] ) {
303302 let selectableRanges = emphases. filter ( \. select) . map ( \. range)
You can’t perform that action at this time.
0 commit comments