UIFieldBehavior.CreateLinearGravityField(CGVector) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Factory method to create a field that mimics gravity pulling in a single direction.
[Foundation.Export("linearGravityFieldWithVector:")]
public static UIKit.UIFieldBehavior CreateLinearGravityField (CoreGraphics.CGVector direction);
static member CreateLinearGravityField : CoreGraphics.CGVector -> UIKit.UIFieldBehavior
Parameters
- direction
- CGVector
Downward gravity uses a positive Y value.
Returns
- Attributes
Remarks
The field vectors of a linear gravity field look like: