Binary operator ‘|’ cannot be applied to two UIViewAutoresizing operands
The OptionSetType got an updated syntax for Swift 2.x and another update for Swift 3.x Swift 3.x view.autoresizingMask = [.flexibleWidth, .flexibleHeight] Swift 2.x view.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]