Skip to content

Commit 7b9cc63

Browse files
author
Gerardo
committed
Fix defaultTextColor typo
1 parent 28e62ab commit 7b9cc63

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Aztec/Classes/Formatters/Implementations/MarkFormatter.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class MarkFormatter: AttributeFormatter {
55

66
var placeholderAttributes: [NSAttributedString.Key: Any]?
77
var textColor: String?
8-
var defaulTextColor: UIColor?
8+
var defaultTextColor: UIColor?
99

1010
func applicationRange(for range: NSRange, in text: NSAttributedString) -> NSRange {
1111
return range
@@ -36,8 +36,8 @@ class MarkFormatter: AttributeFormatter {
3636
func remove(from attributes: [NSAttributedString.Key: Any]) -> [NSAttributedString.Key: Any] {
3737
var resultingAttributes = attributes
3838

39-
if defaulTextColor != nil {
40-
resultingAttributes[.foregroundColor] = defaulTextColor
39+
if defaultTextColor != nil {
40+
resultingAttributes[.foregroundColor] = defaultTextColor
4141
}
4242

4343
resultingAttributes.removeValue(forKey: .markHtmlRepresentation)

Aztec/Classes/TextKit/TextView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ open class TextView: UITextView {
11581158
open func toggleMark(range: NSRange, color: String?, resetColor: Bool) {
11591159
let formatter = MarkFormatter()
11601160
formatter.placeholderAttributes = self.defaultAttributes
1161-
formatter.defaulTextColor = self.defaultTextColor
1161+
formatter.defaultTextColor = self.defaultTextColor
11621162
formatter.textColor = color
11631163

11641164
// If the format exists remove the current formatting

0 commit comments

Comments
 (0)