Skip to content

Commit

Permalink
fix: use of unresolved identifier nscolor
Browse files Browse the repository at this point in the history
  • Loading branch information
wzxha committed May 30, 2018
1 parent 1d261fd commit e10eddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/SdifftTests/NSAttributedString+DiffTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension NSAttributedString {
open override var description: String {
var description = ""
enumerateAttributes(in: NSRange(location: 0, length: string.count), options: .longestEffectiveRangeNotRequired) { (attributes, range, _) in
let color = attributes[NSAttributedStringKey.backgroundColor] as? NSColor ?? NSColor.black
let color = attributes[NSAttributedStringKey.backgroundColor] as? Color ?? Color.black
description += string[range.location...range.location + range.length - 1] + color.cgColor.description
}
return description
Expand Down

0 comments on commit e10eddf

Please sign in to comment.