A quite general question. What exact syntax should I use instead of CGRectMake
while coding in Swift 3?
Here is the code I would like to convert from swift 2 - 3:
{let size = text.boundingRectWithSize(CGSizeMake(view.frame.width - 26, 2000), options: NSStringDrawingOptions.UsesFontLeading.union(.UsesLineFragmentOrigin), context: nil).size}
Thanks for the help!
in Swift 3.0 this can be use
let rect = CGRect(x: 0, y: 0, width: 50, height: 50)
https://www.raywenderlich.com/135655/whats-new-swift-3
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