How to force a raw value of 7 into a UIViewAnimationCurve enum?
The key UIKeyboardAnimationCurveUserInfoKey in the userInfo dictionary of a UIKeyboardWillShowNotification contains an Int with the value 7 . Now I need to pass this Int into UIView.setAnimationCurve(<here>) . I tried to create the required UIViewAnimationCurve enum like this UIViewAnimationCurve(rawValue: 7) . Because the raw value 7 is undocumented, the result is always nil . It works fine this way in Objective-C. Any idea how to get this animation curve from the notification into a UIView animation using Swift? Update: As pointed out by Martin, this is no longer a problem since Xcode 6.3.