Xcode 11 PKCanvasView

Hello,


with Xcode 11 the Pencil Kit is introduced. I am able to import the Pencil Kit in the View Controller but I can not chose a PKCanvas View from Storyboard (the Plus Button feature does not show up such a PKCanvasView).
Do I have to import something or will not a drag and drop PKCanvasView will be choosable?
Greetings,


Tobias

Accepted Reply

I had the same issue. I simply dragged the PKCanvasView from the XCode instance of the WWDC sample project and dropped it into my storyboard. That seemed to have done the trick for me.

Replies

I had the same issue. I simply dragged the PKCanvasView from the XCode instance of the WWDC sample project and dropped it into my storyboard. That seemed to have done the trick for me.

Still missing in Xcode 11. Workaround to copy from WWDC project as nrkrishna mentioned.

In the storyboard, add a UIView object over the view controller's view. Then set this new UIView's Class property (from Identity Inspector) to PKCanvasView. That's it.