keyboardAnimationCurveUserInfoKey returns bad UIView.AnimationCurve value

Originator:an00na
Number:rdar://42609976 Date Originated:July 25 2018, 10:26 PM
Status:DUPLICATE OF 12449780 OPEN Resolved:
Product:iOS + SDK Product Version:iOS 12 beta 4
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Area:
UIKit

Summary:
Doc says keyboardAnimationCurveUserInfoKey returns UIView.AnimationCurve, but it actually returns Int 7 for which UIView.AnimationCurve.init(rawValue:) should returns nil but not, but then this UIView.AnimationCurve value crashes when is actually used.


Steps to Reproduce:
1. Run sample app.
2. Tap text view.


Code: https://mega.nz/#!pCJkHKiZ!pw3zGUH3jRYWXoG0q2ONDOThY2wAB11juHuHr8C6XI4

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!