One Logo Pool Ball
PencilKit · IOS API REFERENCE

PKInk

struct · iOS 14.0+ · SDK 27.1

struct PKInk

PKInk provides a description of how marks on a PKCanvas render and are created.

Members (6)

get · iOS 17.0+

requiredContentVersion

TypeScript
get requiredContentVersion(): PKContentVersion
Swift declaration
var requiredContentVersion: PKContentVersion { get }

The PencilKit version required to use this ink.

get · iOS 14.0+

color

TypeScript
get color(): _UIKit_UIColor
Swift declaration
var color: UIColor { get set }
set · iOS 14.0+

color

TypeScript
set color(value: _UIKit_UIColor)
Swift declaration
var color: UIColor { get set }
get · iOS 14.0+

inkType

TypeScript
get inkType(): PKInkingTool_InkType
Swift declaration
var inkType: PKInk.InkType { get set }

The type of ink.

set · iOS 14.0+

inkType

TypeScript
set inkType(value: PKInkingTool_InkType)
Swift declaration
var inkType: PKInk.InkType { get set }

The type of ink.

init · iOS 14.0+

init

TypeScript
static init(inkType: PKInkingTool_InkType, color?: _UIKit_UIColor): PKInk
Swift declaration
init(_ inkType: PKInk.InkType, color: UIColor = UIColor.black)

Skipped declarations

No declarations were skipped in this snapshot.

All PencilKit types →