NSAttributedString has a size() method which the new AttributedString lacks. How do you get the size of the new AttributedString?
You could convert your AttributedString to an NSAttributedString and then call the size method, although this seems more like a workaround.
let myNSAttributedString = NSAttributedString(myAttributedString)
myNSAttributedString.size()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With