I\'ve been trying to use the Autolayout Visual Format Language in Swift, using NSLayoutConstraint.constraintsWithVisualFormat. Here\'s an example of some code that
NSLayoutConstraint.constraintsWithVisualFormat
You have to access to the struct NSLayoutFormatOptions.
NSLayoutFormatOptions
Following works for me.
self.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("", options:NSLayoutFormatOptions.AlignAllBaseline, metrics: nil, views: nil))