gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.53k stars 318 forks source link

textColor setting in codeBlock is invalid The ForegroundColor is invalid #226

Closed wscqs closed 1 year ago

wscqs commented 1 year ago
.codeBlock { configuration in
    ScrollView(.horizontal,showsIndicators: false) {
      configuration.label
        .relativeLineSpacing(.em(0.225))
        .markdownTextStyle {
          FontFamilyVariant(.monospaced)
          FontSize(.em(0.85))
          ForegroundColor(.secondaryText) //myadd
        }