Contents

PKToolPickerObserver

An interface you use to detect when the user changes the selected tools and drawing characteristics of a tool picker object.

Declaration

@MainActor protocol PKToolPickerObserver : NSObjectProtocol

Overview

Implement the methods of PKToolPickerObserver to detect when the user changes the configuration of a PKToolPicker view. Each time the user changes the selected tool or other drawing characteristics, the tool picker notifies any registered observers. You use these notifications to update the configuration of the underlying canvas.

To register an observer with a tool picker, call the addObserver(_:) method of the PKToolPicker object.

Topics

Detecting tool configuration changes

Monitoring visibility changes

Deprecated

See Also

Detecting changes to the picker