Skip to content

Commit ffafc3b

Browse files
committed
Update textview background in darkmode
1 parent 229b479 commit ffafc3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CustomSuggestionService/TestField/TestFieldView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ private struct StylingPlugin: STPlugin {
162162
let textView = context.textView
163163
let paragraph = NSParagraphStyle.default.mutableCopy() as! NSMutableParagraphStyle
164164
paragraph.lineHeightMultiple = 1.1
165+
textView.textColor = .textColor
166+
textView.backgroundColor = .white
165167
textView.typingAttributes[.paragraphStyle] = paragraph
166168
}
167169
}

0 commit comments

Comments
 (0)