See Also: UIDynamicBehavior Members
A number of UIKit.UIDynamicBehaviors are associated with a UIKit.UIDynamicAnimator, which is responsible for the overall context. Any given UIKit.UIDynamicBehavior is associated with some amount of UIKit.IUIDynamicItems (such as UIKit.UIViews and UIKit.UICollectionViewLayoutAttributes); most subclasses of UIKit.UIDynamicBehavior expose these in an Items property or application developers can retrieve them with UIDynamicAnimator.GetDynamicItems.
There are a number of predefined subclasses of UIKit.UIDynamicBehavior:
| Subclass | Behavior |
|---|---|
| UIKit.UIAttachmentBehavior | Attachment: Specifies a dynamic connection between two UIKit.IUIDynamicItems or between a UIKit.IUIDynamicItem and a fixed point. |
| UIKit.UICollisionBehavior | Collision: Detects when the boundaries of a UIKit.IUIDynamicItem meet another boundary. |
| UIKit.UIGravityBehavior | Gravity: Accelerates the UIKit.IUIDynamicItem towards the bottom of the screen. |
| UIKit.UIDynamicItemBehavior | Animation: Specifies an animation configuration to apply to one or more UIKit.IUIDynamicItems. |
| UIKit.UIPushBehavior | Pushing: Applies a continuous or instantaneous force vector to a UIKit.IUIDynamicItem. |
| UIKit.UISnapBehavior | Snapping: Specifies a magnetism-like attraction between a UIKit.IUIDynamicItem and a fixed point. Includes a rebounding effect. |