Swift 2 / Xcode 7 beta - multiple bitmaxes cause an error

Im creating a UIView animation:

UIView.animateWithDuration(0.1,
    delay: 0,
    options: (.AllowUserInteraction | .Repeat | .Autoreverse),
    animations:
        { () -> Void in

            // Animate

    },
    completion: nil)

But the compiler says: “Could not find the Autoreverse member,” or whatever bitmask would be at the end, unless one option exists. Syntax changed in Swift 2? I don't see anything in Swift docs and don't remember anything in WWDC reports.

Or could it just be a mistake?

Thanks in advance

+4
source share
1 answer

The answer is found here:

Swift 2.0 - binary operator "" "cannot be applied to two operands of UIUserNotificationType

"The syntax has been updated in Swift 2 .."

To cut it, instead

.Type | .Another | .Third

Using

[.Type, .Another, .Third]
+14
source

All Articles