Simple Drawing App with PencilKit | iOS Swift Tutorial | Brian Advent
HTML-код
- Опубликовано: 4 сен 2024
- The first 1000 people to use this link will get a 2 month free trial of Skillshare Premium Membership: skl.sh/brianad...
This video was sponsored by Skillshare
🔴 PRIVACY LIVE STREAM: • Video
➡️ Why Privacy Matters: • Why Privacy Matters, H...
🎯 SWIFT UI COURSE - JUST $12.99 (valid during June 2020) 🎯
www.udemy.com/...
➡️ Tutorial Files: / 38219847
👏 Support me on Patreon: / brianadvent
➡️ Web: www.brianadvent...
✉️ COMMENTS ✉️
If you have questions about the video or Cocoa programming, please comment below.
9:06 ios 14 : canvasView.drawingPolicy = .anyInput
9:51 How to fix
If it throws "allowsFingerDrawing" was depricated you can use : canvasView.drawingPolicy = .anyInput
Just FYI, PKTookPicker.shared has been deprecated. Instead, delete the if let, and do `let toolPicker = PKToolPicker.init()` and the rest of the code should work fine.
it is For more information, this process is only for iOS 14.0 or newr
Hi Brian thank you so much for this tutorial :). Just some feedback for you next tutorial, I'm a tad slow and have a hard time comprehending things quickly could you maybe slow down a little bit and explain a little more. I just felt like I was copying you instead of understanding. But at yes you did fabulously otherwise and I'm going to subscribe and watch more in the future. Thank you again.
Another great one... very good always thanks Brain
Hey, Brian! Why is my toolpicker not showing? I do everything exactly as shown in the tutorial
Very good instructions. I was able to pause and rewind when I missed something. One question I have is how do we save the image through an app close/open so I can start back up where I left off on my drawing and still undo previous peices of the drawing?
This is great! There’s so little out there on PK, and this helps me get the basics. Would love to see a follow up going into more detail. I’ve been going over the WWDC talk “Inspect, modify, and construct PencilKit drawings”. It shows off the amazing new capabilities of PK to manipulate and animate strokes. But it’s going over my head.
Thank you soooo much for this......priceless
Thank you! Now I can start to accomplish my app.
Thanks,I'm excited to run this on the device.
Very good tutorial … 1 quick question what if the user wants to add text on the canvas is it possible to also type text
Hi Bryan, thank you for this amazing video tutorial as always. I wonder if you can also do some tutorials that combine PDFKit and PencilKit as well? Or maybe if you have a paid tuts (in Udemy) for these I would love to learn about it.
Looking for the same
Hi Brian, its great toturial Really helpful.
it is not working anymore... throwing a lot of warnings including depreciations...
This is a really good tutorial and it’s well made. The one question I have though is, this was made on iOS 14 is this doable on iOS15 as well or are there different codes we have to use then?
This helped a lot to get started with PencilKit, thank you very much, you can count me in for the live stream 😉
Thanks but the tools are not working actually I cannot draw anything 😔
Hello, great tutorial, thanks for sharing it! I have two questions: 1) I have written the exact same code as you and the PK tool picker Obverser don't show up when i launch the simulator, I've chosen the Iphone SE too, put it at iOS 13.5, etc. Do you have an idea why it doesn't work please? :) and 2) do you know how to implement a layer system please? Thank you very much for your time :)
getting same error
Hey, Brian! Yes, you! Do you read it? Just want to tell you’re the best!
Thank you so much!!!
Thank you so much. May God reward you.
Super helpful thank you so much
Thanks, This is great. But why undo redo is not visible on iPhones? How to make them visible?
Plz make this app for SwiftUI as well
allowsFingerDrawing was deprecated in iOS 14.0: use 'drawing policy' property. How do I solve this order problem? Plus i can only draw in black color doesn't matter whatever color or pencil i choose!
Very great video 🔝 thanks so much 💪
You're the best.........thanks
This helped me a lot, thanks. But it is not scrolling while rotating the iPhone.
Hi! Would you know why the tools (pencils and eraser) at the bottom of the screen aren’t showing up? I have exactly the same code as you.
Thank you so much...
Hi Brian, thanks for this great tutorial. But do you know how to add the 'shape' and 'text' function we see in iOS markup to PencilKit?
Thank you
Great video one thing. Its saying the 'allowsFingerDrawing' was deprecated in iOS 14.0: Use 'drawingPolicy' property. any idea as to what I can do to fix this
change the version of ios you're using, go for ios 13.5 for example and it will solve the problem :)
canvasView.drawingPolicy = .anyInput
Hi awesome tutorial
It's not working on IOS 14 can u tell how it works on IOS 14?
Can we do this is SwiftUI?
Toolpicker is not showing. Why ?
Hi Brian... great job! I have a question: I would like to make an app for drawing and put inside the canvas some pictures. I have always specify the dimensions of the canvas inside the project or there is a way to have a canvas with infinite bounces? I.e. no bounces....
How to code this in SwiftUI?
my xcode 10.1 doesnt have PencilKit, anysolutions?
Can I use this tool on a picture/photo?
SwiftUI!
Question, why does the one in the demo look different, It looks like that it has more and or different options?
It’s actually the same thing
OK, It looks like there is more buttons on that one.... I did one of these years ago but with chalk before swift.
Does Real ipen work on the app?
Yes it does.
Brian Advent in the iPhone with ipen ?
I tried this with iOS 14 and, wow, lots of changes to how it works.for a newb with PK it was a show stopper. Thankfully I found sample code from apple in a topic named "Drawing with PencilKit" Which helped me identify all the bits that have changed.
Hi can you please tell me if you could infer that why using the same code as above I am not able to see the tool picker
Kevin when I apply this code the tool picker is not showing iOS 14 can u plz tell me how to solve this?
Thanks
I went to developer.apple.com/documentation/pencilkit/drawing_with_pencilkit/ and watched the linked sessions, downloaded the sample, and moved on from there. apple constantly changes the environment and the newer the tech the more likely it is to change.