Edit

Share via


UIFieldBehavior.CreateLinearGravityField(CGVector) Method

Definition

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:

Applies to