Skip to content

DynamicTypeSize Support#74

Merged
colinc86 merged 1 commit into
colinc86:mainfrom
LuckDuracell:main
Apr 3, 2026
Merged

DynamicTypeSize Support#74
colinc86 merged 1 commit into
colinc86:mainfrom
LuckDuracell:main

Conversation

@LuckDuracell

@LuckDuracell LuckDuracell commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Added basic support for DynamicTypeSize without breaking any existing use cases.

Example of usage:

LaTeX(text)
    .font(.caption)
    .dynamicTypeSize(.medium)

will now properly respect the provided font size and dynamicTypeSize, whereas that same code would previously ignore dynamicTypeSize for any rendered math elements, and would incorrectly use the device's Dynamic Type size.

Might need to double check all sizes are converted correctly in the init extension for UIContentSizeCategory.
@colinc86 colinc86 merged commit ba1e924 into colinc86:main Apr 3, 2026
1 check failed
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.

2 participants