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 Наука
Go deeper with my iOS Dev courses at seanallen.teachable.com
source code for your tutorial?
I'm a simple man, I see new upload from Sean, I hit like 👍
I appreciate that!
Thank you Sean! This was super helpful and much simpler than every other tutorial I could find!
Glad it helped!
Amazing explanation. always love your useful videos
Super useful tutorial to understand how Photo Picker works, thanks a lot!
Happy to help!
Hello Sean. Thanks for your great tutorial as always, God bless you 😊
Happy to help!
This is epic. Thanks so much, Sean.
Happy to help!
thank you for awesome tutorial
everyone at my uni now watches ur vids, keep up the great work
That's awesome to hear. Best of luck to ya 👍
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!
Excellent tutorial, thanks!
Glad it was helpful!
Could you please make a detailed video on Core data with swiftUI?
Useful lesson, thanks Sean.
Glad you liked it!
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?
Very useful thanks
The more I learn SwiftUI, the more I grow to like it.
Me too.
Awesome explanation. Had no idea these images were converted from data. Issue resolved!! haha
Glad I could help!
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 ❤
I recommend doing what you enjoy the most. There's career paths in iOS Dev and Flutter.
Thanks!
I appreciate the generosity, Andrew!
thank you so much
You're welcome!
Merci beaucoup ! Thanks
Happy to help
Wow thats cool.
I new in iOS dev, does this not require permission to access the photos?
This picker in SwiftUI does not require permissions.
@@seanallen oh alright, thanks
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.
For some reason, this causes a memory leak when the photo gets picked, anyone know how to solve it?
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. 😅