How do you convert a String to an array of Character in Swift >=5?
Ok, this keeps changing, and I just flogged at this question for 15 minutes.
Cannot convert value of type ‘Int’ to expected argument type ‘AttributedString.Index’
Sorry I am still a bit new to swift. I have searched on here but all I could find are outdated answers. How do I construct the AttributedString.Index for insert(_ s: some AttributedStringProtocol, at index: AttributedString.Index)
.
Swift 6.0 – Cannot convert value of type ‘Int’ to expected argument type ‘AttributedString.Index’
Sorry I am still a bit new to swift. I have searched on here but all I could find are outdated answers. How do I construct the AttributedString.Index for insert(_ s: some AttributedStringProtocol, at index: AttributedString.Index)
.