Skip to content

Commit dcfa8c4

Browse files
authored
Merge pull request #107 from DominikBucher12/bugfix/color_crashing
[Bugfix] Fix crashing of setRichTextColor
2 parents 38d0e2c + 21c2f17 commit dcfa8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/RichTextKit/Attributes/RichTextAttributeWriter+Colors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public extension RichTextAttributeWriter {
1818
) {
1919
guard let attribute = color.attribute else { return }
2020
if richTextColor(color, at: range) == val { return }
21-
setRichTextAttribute(attribute, to: color, at: range)
21+
setRichTextAttribute(attribute, to: val, at: range)
2222
}
2323
}

0 commit comments

Comments
 (0)