allowsColorSelection
TypeScriptget allowsColorSelection(): booleanSwift declarationvar allowsColorSelection: Bool { get set }class · iOS 18.0+ · SDK 27.1
class PKToolPickerInkingItemget allowsColorSelection(): booleanSwift declarationvar allowsColorSelection: Bool { get set }set allowsColorSelection(value: boolean)Swift declarationvar allowsColorSelection: Bool { get set }get inkingTool(): PKInkingToolSwift declarationvar inkingTool: PKInkingTool { get }A tool for drawing on a PKCanvasView.
static initTypeColorWidthIdentifier(type: PKInkingTool_InkType, color?: (_UIKit_UIColor) | null, width?: (number) | null, identifier?: (string) | null): PKToolPickerInkingItemSwift declarationconvenience init(type: PKInkingTool.InkType, color: UIColor? = nil, width: CGFloat? = nil, identifier: String? = nil)Create a new inking tool item. - Parameters: - type: The ink type for the tool. - color: The color for the tool. Passing `nil` resolves to a default value based on the `InkType`. - width: The width for the tool. Passing `nil` resolves to a default value based on the `InkType`. - identifier: The identifier for the tool item. Passing `nil` resolves to a default value based on the `InkType`.
static initTypeColorWidthAzimuthIdentifier(type: PKInkingTool_InkType, color?: (_UIKit_UIColor) | null, width?: (number) | null, azimuth?: (number) | null, identifier?: (string) | null): PKToolPickerInkingItemSwift declarationconvenience init(type: PKInkingTool.InkType, color: UIColor? = nil, width: CGFloat? = nil, azimuth: CGFloat? = nil, identifier: String? = nil)Create a new inking tool item. - Parameters: - type: The ink type for the tool. - color: The color for the tool. Passing `nil` resolves to a default value based on the `InkType`. - width: The width for the tool. Passing `nil` resolves to a default value based on the `InkType`. - azimuth: The azimuth for the tool. Passing `nil` resolves to a default value based on the `InkType`. - identifier: The identifier for the tool item. Passing `nil` resolves to a default value based on the `InkType`.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
PKToolPickerInkingItem.init()
inherited init: cannot prove legal (class declares 2 custom initializers)