Open aheze opened 4 months ago
Currently the code block syntax highlighting changes when CodeHighlighterTheme is changed. However, it doesn't update when system dark mode is toggled.
CodeHighlighterTheme
I added an .onChange(of: colorScheme) to handle this case.
.onChange(of: colorScheme)
Could you please attach a comparison video on this? task(id:_) do exactly the same thing so I think onChange(of: colorScheme) is a duplication.
task(id:_)
onChange(of: colorScheme)
Currently the code block syntax highlighting changes when
CodeHighlighterTheme
is changed. However, it doesn't update when system dark mode is toggled.I added an
.onChange(of: colorScheme)
to handle this case.