Contents

init(frame:context:)

Initializes a new view.

Declaration

init(frame: CGRect, context: EAGLContext)

Parameters

  • frame:

    The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This method uses the frame rectangle to set theCenter and Bounds properties accordingly.

  • context:

    An OpenGL ES context used to store the framebuffer object.

Return Value

An initialized view object or nil if the object couldn’t be created.