UIKit Dynamics in iOS Control Center

509 views Asked by At

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:

  • UIGravityBehavior
  • UICollisionBehavior
  • UIPushBehavior
  • UIAttachmentBehavior
  • UISnapBehavior

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?

0

There are 0 answers