【发布时间】:2021-08-23 07:47:04
【问题描述】:
var str:String = "当我 ###young$$$ 的时候,我认为 ###time$$$ 就是金钱" VStsck{ 文本(字符串) } enter image description here
【问题讨论】:
-
感谢回答,我知道用Text()+Text(),但是我的字符串是变量,我只知道###$$里面包含了需要高亮的字符$,我使用 ios 14 swift5
-
然后你只需要像stackoverflow.com/a/62111947/12299030一样解析它并组合结果
标签: swiftui