Using Autolayout Visual Format with Swift?
this works for me with no error: let bar:[AnyObject]! = NSLayoutConstraint.constraintsWithVisualFormat( nil, options: NSLayoutFormatOptions(0), metrics: nil, views: nil) update the line above may not be compiled since the 1st and 4th parameters cannot be optionals anymore. syntactically those have to be set, like e.g. this: let bar:[AnyObject] = NSLayoutConstraint.constraintsWithVisualFormat(“”, options: NSLayoutFormatOptions(0), metrics: nil, views: [“”: … Read more