Skip to content

Commit a72b573

Browse files
committed
Set default text color when text color is changed.
1 parent dc3253b commit a72b573

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
@@ -256,6 +256,17 @@ open class TextView: UITextView {
256256
}
257257
}()
258258

259+
open override var textColor: UIColor? {
260+
set {
261+
super.textColor = newValue
262+
defaultTextColor = newValue
263+
}
264+
265+
get {
266+
return super.textColor
267+
}
268+
}
269+
259270
// MARK: - Plugin Loading
260271

261272
var pluginManager: PluginManager {

0 commit comments

Comments
 (0)