Files
openclaw/apps/macos/Sources/OpenClaw/NSAttributedString+VoiceWake.swift

10 lines
316 B
Swift
Raw Normal View History

import Foundation
extension NSAttributedString {
func strippingForegroundColor() -> NSAttributedString {
let mutable = NSMutableAttributedString(attributedString: self)
mutable.removeAttribute(.foregroundColor, range: NSRange(location: 0, length: mutable.length))
return mutable
}
}