The default PKInkingTool with inkType .pen seems to be limited in its stroke width. With a maximum width of around 25.66. Why is that? How can I increase it?
Example code:
canvasView.tool = PKInkingTool(.pen, color: .black, width: 10)
print(canvasView.tool)
//Prints: PKInkingTool(tool: <PKInkingTool: 0x2837ba140 com.apple.ink.pen color=UIExtendedSRGBColorSpace 0 0 0 1 width=10.000000>)
canvasView.tool = PKInkingTool(.pen, color: .black, width: 20)
//Prints: PKInkingTool(tool: <PKInkingTool: 0x282730140 com.apple.ink.pen color=UIExtendedSRGBColorSpace 0 0 0 1 width=20.000000>)
//Problem starts here:
canvasView.tool = PKInkingTool(.pen, color: .black, width: 30)
//Prints: PKInkingTool(tool: <PKInkingTool: 0x28077a0c0 com.apple.ink.pen color=UIExtendedSRGBColorSpace 0 0 0 1 width=25.659260>)
canvasView.tool = PKInkingTool(.pen, color: .black, width: 100)
//Prints: PKInkingTool(tool: <PKInkingTool: 0x2824e08e0 com.apple.ink.pen color=UIExtendedSRGBColorSpace 0 0 0 1 width=25.659260>)
How can I increase the stroke width? 🤔