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.

Комментарии • 58

  • @abdullahalmunaikh5933
    @abdullahalmunaikh5933 4 года назад +5

    9:06 ios 14 : canvasView.drawingPolicy = .anyInput

  • @TylerMatthewHarris
    @TylerMatthewHarris 3 года назад +4

    If it throws "allowsFingerDrawing" was depricated you can use : canvasView.drawingPolicy = .anyInput

  • @williamshillingford6717
    @williamshillingford6717 4 года назад +7

    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.

    • @GSK-Tech
      @GSK-Tech 3 года назад

      it is For more information, this process is only for iOS 14.0 or newr

  • @TheUltimateScorpio
    @TheUltimateScorpio 4 года назад +3

    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.

  • @MCFinn64
    @MCFinn64 4 года назад +1

    Another great one... very good always thanks Brain

  • @rasulovmuhammadiyor9224
    @rasulovmuhammadiyor9224 3 года назад +4

    Hey, Brian! Why is my toolpicker not showing? I do everything exactly as shown in the tutorial

  • @chriszwygart5396
    @chriszwygart5396 4 года назад +2

    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?

  • @idasein
    @idasein 4 года назад

    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.

  • @teamspirit6400
    @teamspirit6400 4 года назад +4

    Thank you soooo much for this......priceless

  • @lunasol511
    @lunasol511 3 года назад

    Thank you! Now I can start to accomplish my app.

  • @oxydol3456
    @oxydol3456 2 года назад

    Thanks,I'm excited to run this on the device.

  • @QDWorld-SwiftUI
    @QDWorld-SwiftUI 2 года назад

    Very good tutorial … 1 quick question what if the user wants to add text on the canvas is it possible to also type text

  • @mjoctavio3730
    @mjoctavio3730 Год назад +2

    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.

    • @te-kowski
      @te-kowski Год назад

      Looking for the same

  • @muhammadmurteza7041
    @muhammadmurteza7041 4 года назад

    Hi Brian, its great toturial Really helpful.

  • @iinterceptor
    @iinterceptor 3 года назад +1

    it is not working anymore... throwing a lot of warnings including depreciations...

  • @shush2389
    @shush2389 2 года назад +1

    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?

  • @adamkenton2585
    @adamkenton2585 4 года назад +1

    This helped a lot to get started with PencilKit, thank you very much, you can count me in for the live stream 😉

  • @mrnobody9742
    @mrnobody9742 4 года назад +2

    Thanks but the tools are not working actually I cannot draw anything 😔

  • @JeanVermeersch
    @JeanVermeersch 3 года назад +1

    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 :)

  • @GreenDevBabe
    @GreenDevBabe 4 года назад +1

    Hey, Brian! Yes, you! Do you read it? Just want to tell you’re the best!

  • @friedrickcolon4929
    @friedrickcolon4929 3 года назад

    Thank you so much. May God reward you.

  • @afriendofsammy
    @afriendofsammy 4 года назад

    Super helpful thank you so much

  • @AmrutheshC
    @AmrutheshC 3 года назад

    Thanks, This is great. But why undo redo is not visible on iPhones? How to make them visible?

  • @9988khan
    @9988khan 3 года назад +1

    Plz make this app for SwiftUI as well

  • @philipmurray4065
    @philipmurray4065 Год назад

    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!

  • @caneallestamartinez2797
    @caneallestamartinez2797 4 года назад

    Very great video 🔝 thanks so much 💪

  • @muradanowar2618
    @muradanowar2618 4 года назад

    You're the best.........thanks

  • @subhangipawar8346
    @subhangipawar8346 4 года назад

    This helped me a lot, thanks. But it is not scrolling while rotating the iPhone.

  • @aliciasaillant5372
    @aliciasaillant5372 2 года назад

    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.

  • @captaintech8337
    @captaintech8337 3 года назад

    Thank you so much...

  • @spencerfeng
    @spencerfeng 3 года назад

    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?

  • @ChillO__Out
    @ChillO__Out 4 года назад

    Thank you

  • @jackmurphy587
    @jackmurphy587 3 года назад +1

    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

    • @JeanVermeersch
      @JeanVermeersch 3 года назад

      change the version of ios you're using, go for ios 13.5 for example and it will solve the problem :)

    • @TylerMatthewHarris
      @TylerMatthewHarris 3 года назад

      canvasView.drawingPolicy = .anyInput

  • @ibtesamatiq1399
    @ibtesamatiq1399 3 года назад

    Hi awesome tutorial
    It's not working on IOS 14 can u tell how it works on IOS 14?

  • @jeevatamil9541
    @jeevatamil9541 4 года назад +1

    Can we do this is SwiftUI?

  • @cocosharp
    @cocosharp 2 года назад

    Toolpicker is not showing. Why ?

  • @DeathVsLife1975
    @DeathVsLife1975 3 года назад

    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....

  • @LebenWerden
    @LebenWerden 6 месяцев назад

    How to code this in SwiftUI?

  • @CheezyDibbles
    @CheezyDibbles 3 года назад

    my xcode 10.1 doesnt have PencilKit, anysolutions?

  • @LuisFernando-nm6lv
    @LuisFernando-nm6lv 3 года назад

    Can I use this tool on a picture/photo?

  • @EVolkan
    @EVolkan 3 года назад

    SwiftUI!

  • @MCFinn64
    @MCFinn64 4 года назад

    Question, why does the one in the demo look different, It looks like that it has more and or different options?

    • @BrianAdvent
      @BrianAdvent  4 года назад

      It’s actually the same thing

    • @MCFinn64
      @MCFinn64 4 года назад

      OK, It looks like there is more buttons on that one.... I did one of these years ago but with chalk before swift.

  • @mingyang6817
    @mingyang6817 4 года назад

    Does Real ipen work on the app?

  • @kevinolive
    @kevinolive 4 года назад +1

    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.

    • @ritikagupta8388
      @ritikagupta8388 4 года назад

      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

    • @ibtesamatiq1399
      @ibtesamatiq1399 3 года назад

      Kevin when I apply this code the tool picker is not showing iOS 14 can u plz tell me how to solve this?
      Thanks

    • @kevinolive
      @kevinolive 3 года назад

      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.