更改文本 link 颜色 swiftUI
Change Text link color swiftUI
我有以下 Text()
需要降价显示 link
Text(.init("[Link Example](https://www.google.es/)"))
有没有办法将默认颜色设置更改为 link?
可以使用强调色,例如
Text(.init("[Link Example](https://www.google.es/)"))
.accentColor(.red)
我有以下 Text()
需要降价显示 link
Text(.init("[Link Example](https://www.google.es/)"))
有没有办法将默认颜色设置更改为 link?
可以使用强调色,例如
Text(.init("[Link Example](https://www.google.es/)"))
.accentColor(.red)