Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile - RCTAztecView - Fixes font customization not getting updated #53391

Merged
merged 6 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,13 @@ class RCTAztecView: Aztec.TextView {
///
private func refreshFont() {
let newFont = applyFontConstraints(to: defaultFont)
font = newFont
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's really interesting that this didn't take place before. I also see remnants of a past history where refreshFont probably called refreshTypingAttributesAndPlaceholderFont, due to the comment on line 702. 🤷

placeholderLabel.font = newFont
defaultFont = newFont

if textStorage.length > 0 {
typingAttributes[NSAttributedString.Key.font] = newFont
}
}

/// This method refreshes the font for the palceholder field and typing attributes.
Expand Down
1 change: 1 addition & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ For each user feature we should also add a importance categorization label to i

## Unreleased
- [*] Display custom color value in mobile Cover Block color picker [#51414]
- [**] Fixes font customization not getting updated on iOS [#53391]

## 1.101.0
- [*] Remove visual gap in mobile toolbar when a Gallery block is selected [#52966]
Expand Down
Loading