Skip to content

Commit d4c70c0

Browse files
committed
Apply missing colours
1 parent 2ef6d5d commit d4c70c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/RunestoneSwiftUI/TextEditor.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ public struct TextEditor: UIViewRepresentable {
4141
// We assume your theme matches the device's mode
4242
textView.backgroundColor = .systemBackground
4343

44+
textView.insertionPointColor = theme.textColor
45+
textView.selectionBarColor = theme.textColor
46+
textView.selectionHighlightColor = theme.textColor.withAlphaComponent(0.2)
47+
4448
return textView
4549
}
4650

0 commit comments

Comments
 (0)