Lambdo-Labs / MDText

SwiftUI markdown
MIT License
131 stars 17 forks source link

Other color for links than the default .blue #9

Open ntnhon opened 4 years ago

ntnhon commented 4 years ago

What if I have my own color scheme and I want to apply that to my links?

andr-ec commented 4 years ago

I’ll be working on adding custom modifiers soon!

Scr1pting commented 3 years ago

Alternatively you can download the code and change the color manually:

func link(_ text: Text) -> Text {
    return text
        .foregroundColor(.accentColor)
        .underline()
}