A gravity behavior specifies a gravity vector that applies to all of its dynamic items.
A gravity behavior specifies a gravity vector that applies to all of its dynamic items.
A dynamic item is any iOS or custom object that conforms to the UIDynamicItem protocol. The UIView and UICollectionViewLayoutAttributes classes implement this protocol starting in iOS 7.0. You can use a custom object as a dynamic item for such purposes as reacting to rotation or position changes computed by a dynamic animator—an instance of the UIDynamicAnimator class.