Contents

init(point:inContext:)

Creates a JavaScript representation of the specified point.

Declaration

init!(point: CGPoint, inContext context: JSContext!)

Parameters

  • point:

    A CoreGraphics point structure.

  • context:

    The JavaScript context in which to create the value.

Return Value

A JavaScript object representing the specified point.

Discussion

Converting a point creates a JavaScript object value with fields named x and y.

See Also

Creating JavaScript Values