mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove the color parameter as it's no longer needed
This commit is contained in:
@@ -34,15 +34,10 @@ extension NSAttributedString {
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - baseFont: The font to add.
|
||||
/// - color: The color to add.
|
||||
func adding(font baseFont: Font, color: Color? = nil) -> NSAttributedString {
|
||||
func adding(font baseFont: Font) -> NSAttributedString {
|
||||
let mutable = self.mutableCopy() as! NSMutableAttributedString
|
||||
let fullRange = NSRange(location: 0, length: mutable.length)
|
||||
|
||||
if let color = color {
|
||||
mutable.addAttribute(.foregroundColor, value: color as Any, range: fullRange)
|
||||
}
|
||||
|
||||
let size = baseFont.pointSize
|
||||
let baseDescriptor = baseFont.fontDescriptor
|
||||
let baseSymbolicTraits = baseDescriptor.symbolicTraits
|
||||
|
||||
Reference in New Issue
Block a user