I found this question and answer here , however I get an error
Type 'UIView!' does not conform to protocol 'AnyObject'
for
...
@IBOutlet var mainView: UIView!
@IBOutlet weak var contentView: UIView!
...
NSLayoutConstraint(item: self.contentView, ...`
Is there something that happens to dereferencing an object of a view?
source
share