<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKInk-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit5PKInkV"
  },
  "title" : "PKInk"
}
-->

# PKInk

A structure that represents an ink that specifies its type, color, and width.

```
struct PKInk
```

## Topics

### Creating an ink object

[`init(_:color:)`](/documentation/PencilKit/PKInk-swift.struct/init(_:color:)-2rx09)

Creates a new ink, specifying its type and color.

[`init(_:color:)`](/documentation/PencilKit/PKInk-swift.struct/init(_:color:)-7w46l)

Creates a new ink, specifying its type and color.

[`PKInk.InkType`](/documentation/PencilKit/PKInk-swift.struct/InkType-swift.typealias)

A type alias referring to the ink type of an inking tool.

### Getting the ink attributes

[`color`](/documentation/PencilKit/PKInk-swift.struct/color-cg6f)

The color of this ink.

[`color`](/documentation/PencilKit/PKInk-swift.struct/color-6lmjp)

The color of this ink.

[`inkType`](/documentation/PencilKit/PKInk-swift.struct/inkType-swift.property)

The line presentation to use for this Ink.

### Comparing ink types

### Supporting backward compatibility

[`requiredContentVersion`](/documentation/PencilKit/PKInk-swift.struct/requiredContentVersion)

The version of PencilKit necessary to use the ink.

### Using reference types

[`PKInkReference`](/documentation/PencilKit/PKInkReference)

Provides a description of the creation and rendering of marks on a canvas.



---

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)