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.
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);
How can I convert above code to Swift?