Files
openclaw/apps/macos/Sources/OpenClaw/NSAttributedString+VoiceWake.swift
2026-01-30 03:16:21 +01:00

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
}
}