UIKit Dynamics in iOS Control Center
I am simply trying to mimic the animation behaviour of iOS Control Center.
I am trying to implement UIKit Dynamics in to an UI element. It's a panel sitting on the bottom half of the screen and I want it to slide up with a pan gesture and snap with bounce just like iOS Control Center. Also want it to snap back with urgency just like on Control Center.
I successfully attached a UIPanGesterRecognizer and initiated these:
After experimenting with all those, I have not, yet, successfully grabbed the behavior of the Control Center.
Does Apple talk about how they implemented it somewhere? In a sample code or WWDC video?
链接地址: http://www.djcxy.com/p/96792.html