Does this work?
let size = text.boundingRect(with: CGSize(width: view.frame.width - 26, height: 2000), options: NSStringDrawingOptions.usesFontLeading.union(.usesLineFragmentOrigin), context: nil).size
2
solved Convert Swift 2 code to Swift 3
Does this work?
let size = text.boundingRect(with: CGSize(width: view.frame.width - 26, height: 2000), options: NSStringDrawingOptions.usesFontLeading.union(.usesLineFragmentOrigin), context: nil).size
2
solved Convert Swift 2 code to Swift 3