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.
init!(rect: CGRect, in context: JSContext!)A newly allocated JavaScript object containing properties named x, y, width, and height, with values from the CGRect.
Create a JSValue from a CGRect.