Converting sizeWithFont method to Swift
<p>I'm going over old obj-c tutorial and having hard time understanding obj-c code. And they are apparantely deprecated.
I've looked into other stackoverflow questions but I still could not figure out since none of them were not in Swift.</p>

<pre><code>   CGSize textSize = [text sizeWithFont:textFont constrainedToSize:CGSizeMake(printableFrame.size.width, CGFLOAT_MAX) lineBreakMode:UILineBreakModeWordWrap];
   CGRect textFrame = CGRectMake(printableFrame.origin.x, currentY, textSize.width, textSize.height);
</code></pre>

<p>How can I convert above code to Swift?</p>