How would I do the following - passing two NSStringDrawing options as a function parameter in swift:
CGRect boundingRect = [string boundingRectWithSize:CGSiz
Can't seem to comment to akashivskyy's post (not got 50+ reputation), but this seems to work on my end:
import Cocoa
let drawingOpts : NSStringDrawingOptions = .UsesLineFragmentOrigin | .UsesFontLeading
let boundingRect = "test".bridgeToObjectiveC().boundingRectWithSize(CGSize(width: 280, height: Int.max), options: drawingOpts, attributes: nil)
Also if I Cmd+click NSStringDrawingOptions I see it as inheriting from RawOptionSet.