Getting this error in Swift 2.0.
Binary operator \'|\' cannot be applied to two UIViewAutoresizing operands
Here is the code:
actual for swift 3.0.2:
view.autoresizingMask = [.layerWidthSizable, .layerHeightSizable]