Skip to content

Commit 85b2b6c

Browse files
committed
Remove platform check for component's set rich text attribute
1 parent 3069451 commit 85b2b6c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Sources/RichTextKit/Component/RichTextViewComponent+Attributes.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,11 @@ public extension RichTextViewComponent {
3737
_ attribute: RichTextAttribute,
3838
to value: Any
3939
) {
40-
#if macOS
41-
setRichTextAttribute(attribute, to: value, at: selectedRange)
42-
typingAttributes[attribute] = value
43-
#else
4440
if hasSelectedRange {
4541
setRichTextAttribute(attribute, to: value, at: selectedRange)
4642
} else {
4743
typingAttributes[attribute] = value
4844
}
49-
#endif
5045
}
5146

5247
/// Set certain attributes at current range.

0 commit comments

Comments
 (0)