Refacto TextStyle to expose more easily the needed informations like font or size. This is needed to start SwiftUI version of the TextStyle to avoid duplications.
This PR also fix a line height issue with large accessibility font size.
Context
In some case when need to access to some informations like font or size and it was currently not easy.
Checklist
[x] Make sure you are requesting to pull a topic/feature/bugfix branch. Please, don't request directly from your main!
Changes description
Refacto
TextStyle
to expose more easily the needed informations like font or size. This is needed to startSwiftUI
version of theTextStyle
to avoid duplications.This PR also fix a line height issue with large accessibility font size.
Context
In some case when need to access to some informations like
font
orsize
and it was currently not easy.Checklist
Does this introduce a breaking change?
Screenshots
iPhone
No changes on the UI, big changes in code.
🧑💻 Developer notes
enum
tostruct
to reduce the number of switch case to do.