Contents

init(size:inContext:)

Creates a JavaScript representation of the specified width and height.

Declaration

init!(size: CGSize, inContext context: JSContext!)

Parameters

  • size:

    A CoreGraphics size structure.

  • context:

    The JavaScript context in which to create the value.

Return Value

A JavaScript object representing the specified size.

Discussion

Converting a rectangle creates a JavaScript object value with fields named width and height.

See Also

Creating JavaScript Values