Swift: Custom Camera Like Snapchat (2022, Xcode 12, AVFoundation) - iOS Development

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • In today’s video we will learn to create a custom camera like the ones used in Snapchat, Instagram, or TikTok in swift 5 and Xcode 12. We will work with AVFoundation, capture devices, inputs, and outputs to learn to take a photo and show it in our UI from scratch (programmatically).
    💻 Source Code: / iosacademy
    🎥 Subscribe for more: www.youtube.co...
    😎 Like my teaching style? Check out some of my most popular courses! courses.iosaca...
    #swift #snapchat #customCamera
    ** Like my teaching style? Check out some of my most popular courses!
    courses.iosaca...
    Join this channel to get access to perks, code, groups, and more:
    Building Instagram: courses.iosaca...
    Building TikTok: / @iosacademy
    SwiftUI for Beginners: ios-academy.te...
    Join the iOS Academy Community: iosacademy.io/
    ** Get Skillshare free for 2 Months and learn iOS
    www.skillshare...
    ** Manage all your investments from app earnings on Betterment!
    bit.ly/3eBwlI9
    ** Grow your own CZcams tech channel with TubeBuddy:
    www.tubebuddy....

Komentáře • 63

  • @caskethands
    @caskethands Před 27 dny

    For anyone else trying to mirror their iPhone to their desktop for recording: You can connect your iPhone with a cable and then open Quicktime and select "New movie recording" and then select your iPhone from the down arrow next to the record button

  • @dbdeveloper2890
    @dbdeveloper2890 Před 3 lety +1

    Definitely one of the top xcode tutorial makers

  • @uggnt
    @uggnt Před 3 lety +6

    Can you please make a tutorial for voice recorder and showing the recordings in a listview please :)

  • @simpleinterest360
    @simpleinterest360 Před 3 lety +4

    awesome need more like how to add beauty mode filters

  • @prachibile2798
    @prachibile2798 Před rokem +1

    I like your videos a lot! You explain each and everything. Just awesome ! 👏

  • @longnguyen-od1qy
    @longnguyen-od1qy Před 3 lety +2

    Fantastic, thanks for doing this!!

  • @firdavsbagirov3162
    @firdavsbagirov3162 Před 3 lety +1

    Thank you so much! You're the best

  • @nazarm6215
    @nazarm6215 Před rokem

    This is solid. Thanks for the video.

  • @anmac6910
    @anmac6910 Před 6 měsíci

    Hi how can I add a camera watermark timestamp at the exact instant I took the photo in this format for example, MM/DD/YYYY hh:mm:ss tt [timezone abbreviation]?

  • @lovelymusicnow4404
    @lovelymusicnow4404 Před rokem +1

    Great Job and great tutorial mate! If you were to take a picture if this app you created, where does it save the photo? Can you assign a specific location for the image to be saved? Like a custom folder within the app?

  • @williamplaetzer7987
    @williamplaetzer7987 Před 3 lety +2

    I liked this video! How do you add video as well as pictures ?

  • @marcussmith7718
    @marcussmith7718 Před 2 lety +2

    How does one do this, with augmented reality elements?

  • @roshanthapa25
    @roshanthapa25 Před 2 lety +1

    Beautiful video

  • @MasonBallowe
    @MasonBallowe Před 2 lety

    Great video, this helped me a ton.

  • @JohnFitnessMotivation
    @JohnFitnessMotivation Před 3 lety

    Absolutly loved it ! Thanks for sharing this

  • @abhijitkotangale170
    @abhijitkotangale170 Před 3 lety +5

    Why don’t you share your code link in description box so that we could refer your code for better understanding?????

    • @roshanthapa25
      @roshanthapa25 Před 2 lety

      two reasons
      1. Codes (sometimes) can be scattered in multiple files
      2. The codes are available through Patreon

  • @santiagolimas2014
    @santiagolimas2014 Před rokem

    thank you!!

  • @gertboer6870
    @gertboer6870 Před 2 lety

    Thanks for this nice tutorial! Helped me a lot! :) I changed the code so it worked for video capturing.

  • @yuvrajagarkar8942
    @yuvrajagarkar8942 Před 3 lety +1

    Please make a playlist for Snapchat clone

  • @TheSpiralnotizblock
    @TheSpiralnotizblock Před 3 lety +2

    Can you make a video on how to create these pinch, pan, and rotate gestures like on Instagram or Snapchat to decrease a text or sticker?

  • @arkemal
    @arkemal Před rokem

    Thank you, excellent tutorial
    Where should I look at if I want to record a video instead and be able to watch it from the Photos app?

  • @motexdevelopers1123
    @motexdevelopers1123 Před 3 lety

    I hope to add tutorial about swift advance like CICD/ Auto deploy and continue snapchat app tutorial

  • @jeffreyliang2345
    @jeffreyliang2345 Před rokem

    I followed the steps but my previewLayer color isn't showing, what could be wrong?

  • @user-oq9mw1il2e
    @user-oq9mw1il2e Před 3 lety +1

    wow thank you

  • @kartikaisharma1638
    @kartikaisharma1638 Před 3 lety

    Sir, can you provide this same custom camera setup with stutter and image from gallery selection in the android studio also. Please

  • @rasheedandrew9106
    @rasheedandrew9106 Před 2 lety

    can you please do this for swift ui

  • @frankyb702
    @frankyb702 Před 2 lety +1

    Will this automatically support center stage???

  • @makeinpro
    @makeinpro Před 2 lety

    will you make video with swift ui ?

  • @brianaswag
    @brianaswag Před 2 lety

    I am using navigation tabs for the app I am creating. How do I make the view controller for this show up as one of the tabs? Do I need to assign it to a swift ui view?

  • @yourgflikesit
    @yourgflikesit Před rokem +2

    Why not SwiftUI? It’s so much better for layouts, stuck in the Stone Age.

    • @iOSAcademy
      @iOSAcademy  Před rokem +1

      Bc modern companies still use uikit

  • @davidjstreet
    @davidjstreet Před 3 lety +1

    How does instagram setup their feed to share different size photos and videos? Would this be an auto layout trick?

    • @iOSAcademy
      @iOSAcademy  Před 3 lety +1

      Frame based calculations. Friend of mine builds it actually

    • @davidjstreet
      @davidjstreet Před 3 lety

      @@iOSAcademy That's awesome. Could you show us how? I'm also super interested in building a wall like Facebook for each user but don't know how to start. Could you help?

    • @davidjstreet
      @davidjstreet Před 3 lety

      @@iOSAcademy And how do I configure the a post to support video as well as photo?

  • @cedricsarigumba4370
    @cedricsarigumba4370 Před rokem

    how do you dismiss the camera view? for instance i would like to display the image in another screen.

  • @wensmusic8636
    @wensmusic8636 Před 2 lety

    how do you save the photo?

  • @psxrjar8883
    @psxrjar8883 Před 2 lety

    can it capture raw imagaes

  • @seanwei9067
    @seanwei9067 Před 2 lety

    how to switch to front camera?

  • @ibrahimkhalikov6782
    @ibrahimkhalikov6782 Před 3 lety

    Hello .
    I'm Ibrohim from Uzbekistan in central asia.
    I'm going to be iOS developer , i started learn , On your Lessons.
    So I should buy a macbook for ios programming.
    which macbook can you recommend, which one will be the best choice ... Max till 1500$

  • @preenxus3425
    @preenxus3425 Před 3 lety

    SOURCE! CODE!