You can get values โโrepresenting the current state of the UIView animation level by accessing its presentation level. This can be done using the following code:
CGPoint currentCenter = [[view.layer presentationLayer] center];
Unfortunately, the properties of the presentation layer do not meet the requirements of KVO, so the best way I can come up with to track the current value is to view the survey of the presentation level until it approaches the desired location.
Brad larson
source share