Getting this error in Swift 2.0.
Binary operator \'|\' cannot be applied to two UIViewAutoresizing operands
Here is the code:
Try with xcode7-b6:
view.autoresizingMask = UIViewAutoresizing.FlexibleWidth.union(UIViewAutoresizing.FlexibleHeight)