Skip to content

Commit d8789be

Browse files
Merge pull request #1245 from wordpress-mobile/issue/update_default_text_color_when_text_color_changed
Set default text color when text color is changed.
2 parents 96bc222 + a72b573 commit d8789be

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Aztec/Classes/TextKit/TextView.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,17 @@ open class TextView: UITextView {
259259
return UIColor.darkText
260260
}()
261261

262+
open override var textColor: UIColor? {
263+
set {
264+
super.textColor = newValue
265+
defaultTextColor = newValue
266+
}
267+
268+
get {
269+
return super.textColor
270+
}
271+
}
272+
262273
// MARK: - Plugin Loading
263274

264275
var pluginManager: PluginManager {

0 commit comments

Comments
 (0)