We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0caa361 commit 21edfc1Copy full SHA for 21edfc1
1 file changed
Aztec/Classes/TextKit/TextView.swift
@@ -226,11 +226,13 @@ open class TextView: UITextView {
226
var defaultMissingImage: UIImage
227
228
fileprivate var defaultAttributes: [NSAttributedString.Key: Any] {
229
- let attributes: [NSAttributedString.Key: Any] = [
+ var attributes: [NSAttributedString.Key: Any] = [
230
.font: defaultFont,
231
- .paragraphStyle: defaultParagraphStyle
+ .paragraphStyle: defaultParagraphStyle,
232
]
233
-
+ if let color = textColor {
234
+ attributes[.foregroundColor] = color
235
+ }
236
return attributes
237
}
238
0 commit comments