init(data:)
Creates a drawing object and populates it with previously drawn content.
Declaration
init(data: Data) throwsParameters
- data:
The initial data to add to the canvas. Only specify data you previously obtained from a canvas view.
Discussion
This initializer creates a new canvas object initialized with the specified data.