One Logo Pool Ball
PencilKit · IOS API REFERENCE

PKToolPickerCustomItem

class · iOS 18.0+ · SDK 27.1

class PKToolPickerCustomItem

Members (9)

method · iOS 18.0+

reloadImage

TypeScript
reloadImage(): void
Swift declaration
func reloadImage()
get · iOS 18.0+

allowsColorSelection

TypeScript
get allowsColorSelection(): boolean
Swift declaration
var allowsColorSelection: Bool { get set }
set · iOS 18.0+

allowsColorSelection

TypeScript
set allowsColorSelection(value: boolean)
Swift declaration
var allowsColorSelection: Bool { get set }
get · iOS 18.0+

color

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

color

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

width

TypeScript
get width(): number
Swift declaration
var width: CGFloat { get set }
set · iOS 18.0+

width

TypeScript
set width(value: number)
Swift declaration
var width: CGFloat { get set }
init · iOS 18.0+

init

TypeScript
static init(configuration: PKToolPickerCustomItem_Configuration): PKToolPickerCustomItem
Swift declaration
convenience init(configuration: PKToolPickerCustomItem.Configuration)

Create a new custom tool item. - Parameter configuration: The configuration for the custom tool.

get · iOS 18.0+

configuration

TypeScript
get configuration(): PKToolPickerCustomItem_Configuration
Swift declaration
var configuration: PKToolPickerCustomItem.Configuration { get }

The configuration of the custom tool item.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PKToolPickerCustomItem.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All PencilKit types →