Closed Gargo closed 1 year ago
Hey, If I understand correctly you would like to style substrings. In that case you can do it like this:
let str = String(format: "<red>%1$@</red>, <blue>%2$@</blue>", "Red Arg", "Blue Arg")
.style(tags: ["red": Attrs().foregroundColor(.red), "blue": Attrs().foregroundColor(.blue)])
.attributedString
How to do this with your library?