New SwiftUI Photo Picker - Single & Multiple Selection

Поделиться
HTML-код
  • Опубликовано: 4 июл 2024
  • Go to squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.
    iOS 16 introduced a native SwiftUI photo picker that allows you to select a single or multiple images (or videos). In this video I will show you how to select an image or video from the camera roll as well as how to filter out files types you don't want like screenshots.
    Super ScrollViews:
    • Super Power Scroll Vie...
    My iOS Dev Courses:
    seanallen.teachable.com/
    X (Twitter):
    Sean Allen - / seanallen_dev
    Hired.com:
    hired.com/x/1n01g
    Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
    Paul Hudson's Hacking With Swift:
    gumroad.com/a/762098803
    Donny Wals - Combine:
    gumroad.com/a/909014131
    Mark Moeyken’s SwiftUI Books:
    www.bigmountainstudio.com/swiftui-views-book/fzc51
    Objc.io Books (Thinking in SwiftUI & Advanced Swift):
    gumroad.com/a/656585843
    Timestamps:
    0:00 - New iOS 16 Photo Picker
    0:37 - Single Image Selection
    2:21 - Filter Unwanted Image/Video Types (Screenshots)
    3:27 - Convert PhotosPickerItem data to an image
    6:43 - Multiple Image Selectio
    #swift #softwaredeveloper #iosdeveloper
  • НаукаНаука

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

  • @seanallen
    @seanallen  8 месяцев назад

    Go deeper with my iOS Dev courses at seanallen.teachable.com

    • @bardakan
      @bardakan 7 месяцев назад

      source code for your tutorial?

  • @nutsilog
    @nutsilog 8 месяцев назад +6

    I'm a simple man, I see new upload from Sean, I hit like 👍

    • @seanallen
      @seanallen  8 месяцев назад

      I appreciate that!

  • @taylorenglish6237
    @taylorenglish6237 Месяц назад +1

    Thank you Sean! This was super helpful and much simpler than every other tutorial I could find!

  • @umairnazim3565
    @umairnazim3565 2 месяца назад

    Amazing explanation. always love your useful videos

  • @Pepe_the_raver
    @Pepe_the_raver 4 месяца назад +1

    Super useful tutorial to understand how Photo Picker works, thanks a lot!

    • @seanallen
      @seanallen  4 месяца назад +1

      Happy to help!

  • @ialtoobi
    @ialtoobi 5 месяцев назад +1

    Hello Sean. Thanks for your great tutorial as always, God bless you 😊

    • @seanallen
      @seanallen  5 месяцев назад

      Happy to help!

  • @eamiller
    @eamiller 7 месяцев назад +2

    This is epic. Thanks so much, Sean.

    • @seanallen
      @seanallen  7 месяцев назад +1

      Happy to help!

  • @matejbeber8892
    @matejbeber8892 5 месяцев назад

    thank you for awesome tutorial

  • @thatguyFS6961
    @thatguyFS6961 7 месяцев назад +1

    everyone at my uni now watches ur vids, keep up the great work

    • @seanallen
      @seanallen  7 месяцев назад

      That's awesome to hear. Best of luck to ya 👍

  • @bakosandrei4696
    @bakosandrei4696 4 месяца назад

    What if the image rotates after I select it? Is there any way to force it to be saved as portrait or to not rotate? Thanks and really great tutorial!

  • @awakeFromNib
    @awakeFromNib 8 месяцев назад +1

    Excellent tutorial, thanks!

    • @seanallen
      @seanallen  8 месяцев назад

      Glad it was helpful!

  • @umairnazim3565
    @umairnazim3565 2 месяца назад

    Could you please make a detailed video on Core data with swiftUI?

  • @jousufjacob8251
    @jousufjacob8251 6 месяцев назад +1

    Useful lesson, thanks Sean.

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

      Glad you liked it!

  • @manoharacharyaa
    @manoharacharyaa 7 месяцев назад

    what state management is used in iOS dev I come from background of Flutter where we use sate management like Provider, River Pod, Bolc etc. And I want to start learning iOS dev but I don't have a mac so can I use Hackintosh?

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

    Very useful thanks

  • @MobileMastersAndroidiOS
    @MobileMastersAndroidiOS 7 месяцев назад +2

    The more I learn SwiftUI, the more I grow to like it.

  • @juliansha2590
    @juliansha2590 3 месяца назад +1

    Awesome explanation. Had no idea these images were converted from data. Issue resolved!! haha

    • @seanallen
      @seanallen  3 месяца назад

      Glad I could help!

  • @sudiptochakrabarti457
    @sudiptochakrabarti457 8 месяцев назад

    Hi Sean. Nice tutorial man. I follow you and your channel. I have a question. Why I will learn iOS development instead of flutter development? Thanks from Bangladesh ❤

    • @seanallen
      @seanallen  7 месяцев назад

      I recommend doing what you enjoy the most. There's career paths in iOS Dev and Flutter.

  • @AndrewDChristie
    @AndrewDChristie 8 месяцев назад +1

    Thanks!

    • @seanallen
      @seanallen  8 месяцев назад

      I appreciate the generosity, Andrew!

  • @caioagralemos
    @caioagralemos 4 месяца назад +1

    thank you so much

  • @Thellllterorist
    @Thellllterorist 2 месяца назад +1

    Merci beaucoup ! Thanks

  • @imam_robani
    @imam_robani 8 месяцев назад +1

    Wow thats cool.
    I new in iOS dev, does this not require permission to access the photos?

    • @seanallen
      @seanallen  7 месяцев назад

      This picker in SwiftUI does not require permissions.

    • @imam_robani
      @imam_robani 7 месяцев назад

      @@seanallen oh alright, thanks

  • @asheshpatel5933
    @asheshpatel5933 2 месяца назад

    When I updated SWIFT_STRICT_CONCURRENCY to complete, I am getting warning for ` imageselection?.loadTransferable` => Passing argument of non-sendable type 'PhotosPickerItem' outside of main actor-isolated context may introduce data races, Could you please help me to resolve this?
    Because in swift 6 this will be actual error not warning.

  • @abdulrahman_720
    @abdulrahman_720 4 месяца назад

    For some reason, this causes a memory leak when the photo gets picked, anyone know how to solve it?

  • @thenikhilsheoran
    @thenikhilsheoran 8 месяцев назад

    Hey Sean, I'm a 17 year old guy from India, I've been following you for some time now, I've been working as a freelancer for 2 years and recently I started my RUclips management agency. I sent you an email regarding the same. It would mean the world to me if you reply to that. By the way, great content man, you are a life saviour so many times. 😅