File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -846,20 +846,20 @@ public extension CATextLayer {
846846 textFont = f
847847 }
848848 let prefixTextAttributes = [ NSFontAttributeName : textFont!, NSForegroundColorAttributeName: prefixTextColor] as [ String : Any ]
849- let prefixTextAttribured = NSMutableAttributedString ( string: prefixText, attributes: prefixTextAttributes)
849+ let prefixTextAttributed = NSMutableAttributedString ( string: prefixText, attributes: prefixTextAttributes)
850850
851851 if let iconText = icon? . text {
852852 let iconFont = UIFont ( name: ( icon? . fontName ( ) ) !, size: iconSize ?? size ?? fontSize) !
853853 let iconAttributes = [ NSFontAttributeName : iconFont, NSForegroundColorAttributeName: iconColor]
854854
855855 let iconString = NSAttributedString ( string: iconText, attributes: iconAttributes)
856- prefixTextAttribured . append ( iconString)
856+ prefixTextAttributed . append ( iconString)
857857 }
858858 let postfixTextAttributes = [ NSFontAttributeName : textFont!, NSForegroundColorAttributeName: postfixTextColor] as [ String : Any ]
859859 let postfixTextAttributed = NSAttributedString ( string: postfixText, attributes: postfixTextAttributes)
860- prefixTextAttribured . append ( postfixTextAttributed)
860+ prefixTextAttributed . append ( postfixTextAttributed)
861861
862- string = prefixTextAttribured
862+ string = prefixTextAttributed
863863 alignmentMode = kCAAlignmentCenter
864864 }
865865
You can’t perform that action at this time.
0 commit comments