How would I do the following - passing two NSStringDrawing options as a function parameter in swift:
CGRect boundingRect = [string boundingRectWithSize:CGSiz
In swift 4.0+ we can pass multiple options like this, its working for me
let options = NSStringDrawingOptions(rawValue: NSStringDrawingOptions.usesLineFragmentOrigin.rawValue | NSStringDrawingOptions.usesFontLeading.rawValue)
let boundingRect = string._bridgeToObjectiveC().boundingRect(with: CGSize(width: 280, height: Int.max), options: options, attributes: [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 19.0)], context: nil)