diff --git a/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift b/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift index d8619eafd0..6fdb79d408 100644 --- a/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift +++ b/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift @@ -508,12 +508,14 @@ class RCTAztecView: Aztec.TextView { let fullRange = NSRange(location: 0, length: textStorage.length) + textStorage.beginEditing() textStorage.enumerateAttributes(in: fullRange, options: []) { (attributes, subrange, stop) in let oldFont = font(from: attributes) let newFont = applyFontConstraints(to: oldFont) textStorage.addAttribute(.font, value: newFont, range: subrange) } + textStorage.endEditing() refreshTypingAttributesAndPlaceholderFont() }