SwiftUI Photo Picker - Compressed Images, UIViewControllerRepresentable

SwiftUI Photo Picker - Compressed Images, UIViewControllerRepresentable

Sean Allen

2 года назад

16,769 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@jaylensmith6308
@jaylensmith6308 - 31.07.2023 01:15

Coming back to this video 2 years later. My first iOS Developer tutorial I ever watched! I'm now confident in CreateML, async/await, MVVM, MVC, UIKit, MapKit, VisionKit, CoreData, remote notifications, and much more.

Yet I still struggle with UIImagePickerController lol

Ответить
@sajademad117
@sajademad117 - 14.04.2023 17:55

man you're a life saver!

Ответить
@FabricioMTL
@FabricioMTL - 11.10.2022 12:12

Ney Sean i have an error in line 16 and try with different persons and this the same thing every time line 16 have an error and don’t know why

Ответить
@mrparty333
@mrparty333 - 26.07.2022 00:14

Hi Sean. With this method, could you save this image as Binary Data to a CoreData model? If so, what would that look like?

Ответить
@jamesselvakumar6282
@jamesselvakumar6282 - 18.05.2022 08:41

Very clear explanation of the concepts involved. Thank you very much Sean for this video.

Ответить
@billbyrnes422
@billbyrnes422 - 01.03.2022 07:45

Does anyone know how to save the photo using CoreData after publishing the photo?

Ответить
@A_I_GHOST
@A_I_GHOST - 19.02.2022 13:03

Will this create a retain cycle? Because you have the ImagePicker references the Coordinator and the Coordinator also has a reference to the ImagePicker. Thanks

Ответить
@janmensik9150
@janmensik9150 - 04.02.2022 16:48

great, do you have any tip how to make after click button decide if take photo from camera or galery ?

Ответить
@mark-theeverydayimagineer6163
@mark-theeverydayimagineer6163 - 27.01.2022 11:10

This is one of exceptional videos. Over the last couple of years I've seen a couple of these Representable Coordinator type stuff. But as always, this gives enough logical background that's to-the-point enough to bring the concept across clearly.
Suppose one could do some sort of data-size check to dynamically choose a compression value, so that you don't accidentally compress a file that may already be small in the library.

Ответить
@raymundoortiz7269
@raymundoortiz7269 - 23.01.2022 06:17

Do you know how to pickup a Video from the gallery??

Ответить
@jaylensmith6308
@jaylensmith6308 - 06.01.2022 08:36

Good tutorial, but my image is not updating within the first view. It’s still stuck to the original State ui image

Ответить
@t.s3976
@t.s3976 - 04.01.2022 12:03

Thanks for the great Video! I wonder if it's also possible to have some kind of Video Picker, where the user can select a video from their library and it's then used inside the App. Does anyone know?

Ответить
@freeythm2914
@freeythm2914 - 09.11.2021 12:09

Thank You!

Ответить
@megustaeljamonelchorizoylo560
@megustaeljamonelchorizoylo560 - 22.10.2021 16:35

Great video as always! Different stuff and more painful is take a picture and rotate the device! Try it! Greetings

Ответить
@ekkogaming5461
@ekkogaming5461 - 04.09.2021 17:36

bruhhh your not allowed to be this good!! Cant believe I finally understood those stuff lol.

Ответить
@omarvideos2274
@omarvideos2274 - 20.08.2021 20:03

Hi but how can i cache them

Ответить
@kenturnbull9679
@kenturnbull9679 - 01.08.2021 19:20

I have a need to select pictures taken by the user's phone and save them into a list view in the app (basically a list of items including text and images). Would you use this method or the PHPicker Controller in iOS 14?

Ответить
@AnkitRathi7
@AnkitRathi7 - 31.07.2021 09:16

Great video. All the issues in between like not setting delegate or dismiss is actually good way of teaching I think, that's what everyone, at least I do while actually coding in real project. Also getting protocol stubs from xcode for free is also what I do 😃

Ответить
@faridmontieli6795
@faridmontieli6795 - 30.07.2021 19:41

Excellent tutorial! Is it normal that every time we select an image, it is automatically stored in the device?

Ответить
@rongnev3078
@rongnev3078 - 30.07.2021 18:25

Thank Allen!

Ответить
@ruptapas
@ruptapas - 30.07.2021 12:41

Thanks, Sean, great tutorial... I learnt many important aspects of communicating between SwiftUI & UIKit using the coordinator.

One thing that I am still struggling with is if I have a UIKit app that is using Storyboard and now I want to update my first view controller with SwiftUI how do I do that arrangement in AppDelegate? Any pointers on this will be of great help.

Take care and more power to you...

Ответить
@echocase9528
@echocase9528 - 30.07.2021 11:24

Great videos and great pronunciation! Thanks!

Ответить
@rickywitherspoon2861
@rickywitherspoon2861 - 30.07.2021 07:11

I’m surprised you’re not doing this demonstration with PHPickerController. Any reason why?

Ответить
@xhidnoda
@xhidnoda - 30.07.2021 01:50

Hey Sean...i love your videos...can make a request for the next video? Can show how to make own pod with SwiftUI? Tks!

Ответить
@lowell_
@lowell_ - 30.07.2021 00:49

Thanks for explaining the Coordinator class, haven't used it too much but seems less confusing now. I think I'll be using the new iOS 14 Photos picker however since I need multi-selection. I don't think the code will be too far off from this though.

Ответить
@Connor-pj2tg
@Connor-pj2tg - 30.07.2021 00:22

Thanks Sean. Really appreciate this video and helped me out with my app :)

Ответить
@Engjeanluiz
@Engjeanluiz - 29.07.2021 23:34

Congrats!!!

Ответить
@kdtechniquesofficial6153
@kdtechniquesofficial6153 - 29.07.2021 23:25

I want this for my Final Year project.. Nice. Thanks, Sean bro.

Ответить
@ykgreene
@ykgreene - 29.07.2021 23:07

Sean great tutorial! However, I would like to know if there is a way for me to do this using a set of images from inside my app versus from my camera roll. Like creating a collectionView of images and then using one of them instead of my camera roll.
FYI really like your teaching style. Do you have any discounts for your teachable courses, I want to throw some funds your way but your course is just a little out of my budget currently. But I like your work and I respect the fact that you stepped out on your own. So I will support you the best I can, just keep the quality content coming.

Ответить
@EthanTremblayy
@EthanTremblayy - 29.07.2021 20:13

Hey, nice tutorial!
By the way do you know any articles/videos that cover photo picker usage in case of limited access to the library. Thanks!

Ответить