<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFSelection/draw(for:active:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFSelection(im)drawForPage:active:"
  },
  "title" : "draw(for:active:)"
}
-->

# draw(for:active:)

Calls [`draw(for:with:active:)`](/documentation/PDFKit/PDFSelection/draw(for:with:active:)) with a default value for box parameter.

```
func draw(for page: PDFPage, active: Bool)
```

## Discussion

The default value is `kPDFDisplayBoxCropBox`. If active is <doc://com.apple.documentation/documentation/Swift/true>, drawing uses `selectedTextBackgroundColor`. If <doc://com.apple.documentation/documentation/Swift/false>, it uses `secondarySelectedControlColor`.

---

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)