Skip to content

Conversation

@jcovin293
Copy link
Contributor

@jcovin293 jcovin293 commented Jun 28, 2025

This PR fixes #61.

This pull request introduces support for dynamic type in the Configuration struct of the RichText module. The changes allow developers to enable dynamic type, which adjusts font styles to match system accessibility settings, by setting a new supportsDynamicType property.

supportsDynamicType defaults to false unless enabled in the configuration by the user for compatibility purposes.

During configuration initialization, the property adds CSS to customCSS that causes the text to follow system conformances such as the Dynamic Type feature.

Known Issues:

  • If Dynamic Type settings are changed while using the RichText view, the text will resize; however, the frame size will stay the same. I don't think that this is a common occurrence except when devs test Dynamic Type features.

@jcovin293 jcovin293 marked this pull request as draft June 28, 2025 23:22
@jcovin293 jcovin293 marked this pull request as ready for review June 28, 2025 23:25
@NuPlay
Copy link
Owner

NuPlay commented Jul 3, 2025

Thank you for your contribution

@NuPlay NuPlay merged commit 8fbd101 into NuPlay:main Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add dynamic type

2 participants