toAttributedString

fun String.toAttributedString(attributes: StringAttributeMap = emptyStringAttributes()): AttributedString