Using NSNumber from NSNotification.userInfo[UIKeyboardAnimationCurveUserInfoKey]
In Objective C I would do the following
[UIView animateWithDuration:1.0
Is this what you need?
UIViewAnimationCurve.fromRaw(Int(hereGoesYourStuff))