Quelle est la vitesse d'animation du clavier apparaissant dans iOS8?

Voici une animation pour un champ de texte et la barre d'outils qui se déplacent vers le haut lorsque le clavier apparaît.

    baseConstraint.constant = 211
    self.view.setNeedsUpdateConstraints()

    UIView.animateWithDuration(0.30, animations: {
        self.view.layoutIfNeeded()
        })

Il est proche, mais pas tout à fait identiques. Comment voulez-vous modifier le au-dessus de l'animation?

Edit:

Voici le code final à l'aide de la réponse ci-dessous!

   func keyboardWillShow(aNotification: NSNotification)    {

        let duration = aNotification.userInfo.objectForKey(UIKeyboardAnimationDurationUserInfoKey) as Double
        let curve = aNotification.userInfo.objectForKey(UIKeyboardAnimationCurveUserInfoKey) as UInt

        self.view.setNeedsLayout()
        baseConstraint.constant = 211
        self.view.setNeedsUpdateConstraints()

        UIView.animateWithDuration(duration, delay: 0, options: UIViewAnimationOptions.fromMask(curve), animations: {
        self.view.layoutIfNeeded()
        }, completion: {
        (value: Bool) in println()
        })
}

source d'informationauteur user3784622