I\'m trying to use a tuple as an optional binding in an IF statement in Swift but it won\'t compile and that error message is less than helpful. Why doesn\'t the following
In Swift 2 with optional pattern matching you can write
if case let (user?, pass?) = (user, pass) { }
This is especially useful if, for example, (user, pass) is a tuple stored in a variable.