diff --git a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Anvil.swift b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Anvil.swift index 7bb816dd..4771b18c 100644 --- a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Anvil.swift +++ b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Anvil.swift @@ -203,8 +203,8 @@ extension LTMorphingLabel { self.emitterView.createEmitter( "fragments", particleName: "Fragment", - duration: 0.6 - ) {_ in}.update { (layer, _) in + duration: 0.6, + configureClosure: nil ).update { (layer, _) in if progress > end { layer.birthRate = 0 } @@ -212,8 +212,8 @@ extension LTMorphingLabel { self.emitterView.createEmitter( "leftFragments", particleName: "Fragment", - duration: 0.6 - ) {_ in}.update { (layer, _) in + duration: 0.6, + configureClosure: nil).update { (layer, _) in if progress > end { layer.birthRate = 0 } @@ -221,8 +221,8 @@ extension LTMorphingLabel { self.emitterView.createEmitter( "rightFragments", particleName: "Fragment", - duration: 0.6 - ) {_ in}.update { (layer, _) in + duration: 0.6, + configureClosure: nil).update { (layer, _) in if progress > end { layer.birthRate = 0 } @@ -234,8 +234,8 @@ extension LTMorphingLabel { self.emitterView.createEmitter( "leftSmoke", particleName: "Smoke", - duration: 0.6 - ) {_ in}.update { (layer, _) in + duration: 0.6, + configureClosure: nil).update { (layer, _) in if progress > end { layer.birthRate = 0 } @@ -243,8 +243,8 @@ extension LTMorphingLabel { self.emitterView.createEmitter( "rightSmoke", particleName: "Smoke", - duration: 0.6 - ) {_ in}.update { (layer, _) in + duration: 0.6, + configureClosure: nil).update { (layer, _) in if progress > end { layer.birthRate = 0 } diff --git a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Burn.swift b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Burn.swift index c0bc39da..c0264bac 100644 --- a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Burn.swift +++ b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Burn.swift @@ -50,8 +50,8 @@ extension LTMorphingLabel { height: maskedHeight ) String(charLimbo.char).draw(in: rect, withAttributes: [ - NSFontAttributeName: self.font, - NSForegroundColorAttributeName: self.textColor + NSAttributedStringKey.font: self.font, + NSAttributedStringKey.foregroundColor: self.textColor ]) let newImage = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() diff --git a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Fall.swift b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Fall.swift index 28bb17cb..f2c9e9b9 100644 --- a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Fall.swift +++ b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Fall.swift @@ -132,9 +132,9 @@ extension LTMorphingLabel { ) context!.rotate(by: rotation * CGFloat(Double.pi) / 180.0) let s = String(limbo.char) - let attributes: [String: Any] = [ - NSFontAttributeName: self.font.withSize(limbo.size), - NSForegroundColorAttributeName: charColor + let attributes: [NSAttributedStringKey: Any] = [ + NSAttributedStringKey.font: self.font.withSize(limbo.size), + NSAttributedStringKey.foregroundColor: charColor ] s.draw(in: charRect, withAttributes: attributes) context!.restoreGState() diff --git a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Pixelate.swift b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Pixelate.swift index 06e883f0..fa4b27de 100644 --- a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Pixelate.swift +++ b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Pixelate.swift @@ -87,9 +87,9 @@ extension LTMorphingLabel { height: charLimbo.rect.size.height ) String(charLimbo.char).draw(in: rect, withAttributes: [ - NSFontAttributeName: + NSAttributedStringKey.font: self.font, - NSForegroundColorAttributeName: + NSAttributedStringKey.foregroundColor: self.textColor.withAlphaComponent(fadeOutAlpha) ]) let newImage = UIGraphicsGetImageFromCurrentImageContext() diff --git a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Sparkle.swift b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Sparkle.swift index ad7e8d62..eb178e86 100644 --- a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Sparkle.swift +++ b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Sparkle.swift @@ -50,8 +50,8 @@ extension LTMorphingLabel { height: maskedHeight ) String(charLimbo.char).draw(in: rect, withAttributes: [ - NSFontAttributeName: self.font, - NSForegroundColorAttributeName: self.textColor + NSAttributedStringKey.font: self.font, + NSAttributedStringKey.foregroundColor: self.textColor ]) guard let newImage = UIGraphicsGetImageFromCurrentImageContext() else { return (UIImage(), CGRect.zero) diff --git a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel.swift b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel.swift index d64814c2..3258c1af 100644 --- a/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel.swift +++ b/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel.swift @@ -205,7 +205,7 @@ typealias LTMorphingSkipFramesClosure = // MARK: - Animation extension extension LTMorphingLabel { - func displayFrameTick() { + @objc func displayFrameTick() { if displayLink.duration > 0.0 && totalFrames == 0 { var frameRate = Float(0) if #available(iOS 10.0, tvOS 10.0, *) { @@ -259,12 +259,12 @@ extension LTMorphingLabel { var charRects = [CGRect]() var leftOffset: CGFloat = 0.0 - charHeight = "Leg".size(attributes: [NSFontAttributeName: font]).height + charHeight = "Leg".size(withAttributes: [NSAttributedStringKey.font: font]).height let topOffset = (bounds.size.height - charHeight) / 2.0 for char in textToDraw.characters { - let charSize = String(char).size(attributes: [NSFontAttributeName: font]) + let charSize = String(char).size(withAttributes: [NSAttributedStringKey.font: font]) charRects.append( CGRect( origin: CGPoint( @@ -491,12 +491,12 @@ extension LTMorphingLabel { }(charLimbo) if !willAvoidDefaultDrawing { - var attrs: [String: Any] = [ - NSForegroundColorAttributeName: textColor.withAlphaComponent(charLimbo.alpha) + var attrs: [NSAttributedStringKey: Any] = [ + NSAttributedStringKey.foregroundColor: textColor.withAlphaComponent(charLimbo.alpha) ] if let font = UIFont(name: font.fontName, size: charLimbo.size) { - attrs[NSFontAttributeName] = font + attrs[NSAttributedStringKey.font] = font } let s = String(charLimbo.char) s.draw(in: charRect, withAttributes: attrs)