I\'m working with the Facebook Objective-C SDK in Swift and I\'m trying to compare an FBSessionState value with a value from the enum. However I get the compiler error:
You could unwrap the enum and constants with '.value' to get the underlying integer, which should be switchable:
switch x.value { case Foo.value: }
Maybe this is a bug and apple fix it in future releases.