1

NSAttributedString has a size() method which the new AttributedString lacks. How do you get the size of the new AttributedString?

Melodius
  • 2,505
  • 3
  • 22
  • 37

1 Answers1

2

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()
Claudio
  • 5,078
  • 1
  • 22
  • 33