<!--
{
  "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/PKInkReference",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PKInk"
  },
  "title" : "PKInkReference"
}
-->

# PKInkReference

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

```
class PKInkReference
```

## Topics

### Creating an ink

[`init(inkType: __PKInkType, color: UIColor)`](/documentation/PencilKit/PKInkReference/init(inkType:color:))

Create a new ink, specifying its type, color.

### Getting the ink attributes

[`var color: UIColor`](/documentation/PencilKit/PKInkReference/color)

The base color for this ink.

[`var inkType: __PKInkType`](/documentation/PencilKit/PKInkReference/inkType)

The type of ink, such as pen or pencil, as defined in the [`PKInkType`](/documentation/PencilKit/PKInkType) enumeration.

[`typedef NSString * PKInkType;`](/documentation/PencilKit/PKInkType)

The type that defines the shape of stroked lines.

### Supporting backward compatibility

[`var requiredContentVersion: PKContentVersion`](/documentation/PencilKit/PKInkReference/requiredContentVersion)

The version of PencilKit necessary to use the ink.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)