mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-05-01 06:36:23 +08:00
10 lines
316 B
Swift
10 lines
316 B
Swift
import Foundation
|
|
|
|
extension NSAttributedString {
|
|
func strippingForegroundColor() -> NSAttributedString {
|
|
let mutable = NSMutableAttributedString(attributedString: self)
|
|
mutable.removeAttribute(.foregroundColor, range: NSRange(location: 0, length: mutable.length))
|
|
return mutable
|
|
}
|
|
}
|