<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -",
    "macCatalyst: 18.1.0 -",
    "macOS: 15.1.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImagePlayground",
  "identifier" : "/documentation/ImagePlayground/ImagePlaygroundConcept/drawing(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "s:15ImagePlayground0aB7ConceptV7drawingyAC9PencilKit9PKDrawingVFZ"
  },
  "title" : "drawing(_:)"
}
-->

# drawing(_:)

Creates a concept structure from a PencilKit drawing.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)