Contents

init(rect:in:)

Declaration

init!(rect: CGRect, in context: JSContext!)

Return Value

A newly allocated JavaScript object containing properties named x, y, width, and height, with values from the CGRect.

Discussion

Create a JSValue from a CGRect.