简体   繁体   中英

PKCanvasView on Mac

I have created a document based iOS app with SwiftUI and PencilKit and now I want to write a matching Mac app to display these files there as well.

Is it possible to use PKCanvasView on Mac and how can I do this?

You can only use it with Mac Catalyst it is not available in MacOS

https://developer.apple.com/documentation/pencilkit/pkcanvasview

If you have been working with pure SwiftUI odds are you app already mostly works with Mac Catalyst.

Just go to "iOS Target>General>Deployment Info>Select Mac Catalyst"

Then run your app on "My Mac"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM