Closed heltena closed 3 years ago
Sorry, I solved creating a new MarkdownStyle where the "font" attribute is a getter instead a variable:
struct GenericMarkdownStyle: MarkdownStyle {
var font: MarkdownStyle.Font { .system(.body) }
var foregroundColor: MarkdownStyle.Color { .label }
var codeFontName: String? { nil }
var codeFontSizeMultiple: CGFloat { 0.94 }
var headingFontSizeMultiples: [CGFloat] { [2, 1.5, 1.17, 1, 0.83, 0.67] }
}
Hello!
I'm working with this package (thanks! it is great!) and I'm having troubles on debugging the Accessibility font size. Also, it is an issue that could be problematic in production.
I open the "Accessibility Inspector" and the Markdown view looks great if the font size is set to big (50 pt, I guess). The problem is the current view is not observing the
UIContentSizeCategory.didChangeNotification
notification and I cannot debug properly the view, changing the font size while running.I'm doing this right now:
Where, basically, I'm changing the style everytime the "didChangeNotification" arrives. It is not great, and I'm not proud of it. I keep looking your code, but it will be great if you could have a look.
Thanks!!!!!