neatify
This commit is contained in:
parent
3d3736bf8f
commit
7c548954fb
|
|
@ -25,10 +25,10 @@ import Foundation.NSAttributedString
|
|||
public extension NSAttributedString {
|
||||
|
||||
static func + (left: NSAttributedString, right: NSAttributedString) -> NSAttributedString {
|
||||
let mutableAttributedString = NSMutableAttributedString(attributedString: left)
|
||||
let mutableAttributedString = left.mutable
|
||||
mutableAttributedString += right
|
||||
|
||||
return NSAttributedString(attributedString: mutableAttributedString)
|
||||
return mutableAttributedString.immutable
|
||||
}
|
||||
|
||||
/// Mutable copy of attributed string.
|
||||
|
|
|
|||
Loading…
Reference in New Issue