Protocol

PKToolPickerObserver

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

Declaration

protocol PKToolPickerObserver

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

func toolPickerSelectedToolDidChange(PKToolPicker)

Tells the observer that the user selected a new tool.

func toolPickerIsRulerActiveDidChange(PKToolPicker)

Tells the observer that the user showed or hid the ruler.

Monitoring Visibility Changes

func toolPickerVisibilityDidChange(PKToolPicker)

Tells the observer that the user showed or hid the tool picker.

func toolPickerFramesObscuredDidChange(PKToolPicker)

Tells the observer that area obscured by the tool picker changed.

Relationships

Inherits From

Conforming Types

See Also

Detecting Changes to the Picker

func addObserver(PKToolPickerObserver)

Adds the specified object to the list of objects to notify when the picker configuration changes.

func removeObserver(PKToolPickerObserver)

Removes the specified object from the list of objects to notify when the picker configuration changes.