Contents

drawing(_:)

Creates a concept structure from a PencilKit drawing.

Declaration

static func drawing(_ drawing: PKDrawing) -> ImagePlaygroundConcept

Parameters

  • drawing:

    A PencilKit drawing object that contains a set of strokes. The system uses this drawing, along with other concepts, to guide the image creation.

Discussion

Call this method when you want to use a PencilKit drawing as the basis for generating a new image. Typically, you include other text-based concept structures in addition to this one. Include at most one PencilKit drawing among a collection of concepts. Including more than one drawing yields unpredictable image results.

See Also

Describing the image