SwiftUI 4: New Photo Picker Tutorial – WWDC 2022

SwiftUI 4: New Photo Picker Tutorial – WWDC 2022

iOS Academy

1 год назад

15,838 Просмотров

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


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

Pinocchio
Pinocchio - 18.09.2023 05:27

This works for me in most cases but a heif photo causes a fatal error. does anyone know any work arounds

Ответить
Wesley Prado
Wesley Prado - 07.05.2023 14:46

How can i add the image for an array located in a viewModel??

Ответить
Jonas Šimkus
Jonas Šimkus - 24.04.2023 15:22

But can you open this PhotosPicker programmatically? Let's say with Confirmation Dialog (Action Sheet).. :/ without needing to have a visible direct button to open this picker.

Ответить
Josh Kinney
Josh Kinney - 03.03.2023 19:48

LOVE LOVE LOVE your content as always. I want to call out what you mentioned briefly toward the end of the video. That is to correctly organize (even if it is compact code like this one) so viewers get used to seeing "the correct way" of handling data with SwiftUI. I see so much GREAT content but a small focus on organizing and passing data.

Ответить
Lewis Dunn
Lewis Dunn - 11.02.2023 14:44

Hi, I have created a web view app but it has been rejected as it wasn't "interactive and exciting" enough so I want to put a photo picker option in as well. I have entered the code and there are no errors however I can't see or access the photos as the only menu that appears is the one on the web view. Is there anything I can do to add this option somewhere so people can view the images? There is also back, home & forward buttons on the app.

Ответить
Lewis Dunn
Lewis Dunn - 10.02.2023 21:40

Hi I have already created a webview app but apple rejected it as it was not interactive enough so I'm trying to add a photo picker feature. Will this add a separate page or not work with what I want? Also when I type the code in it says "invalid declaration or 'ContentView'"

Ответить
C B
C B - 09.01.2023 16:17

PhotoPicker has a variant that accepts @State var selectedPhoto: PhotosPickerItem?

Ответить
John Pill
John Pill - 08.01.2023 19:51

Nice video, but how would you save the image into Core Data? I'm finding all these videos great for exercises but it would be useful to see how they could be used in a real application which would need to save persistently.

Ответить
SensePown
SensePown - 02.01.2023 19:15

This was super helpful! I was wondering if there is anyway to have the image that the user picked, show up in a separate view in addition to the one that holders the photo picker, I'm guessing it involves binding of the image data? if anyone has an idea about how to do this that would be amazing!

Ответить
Ahmed Rajib
Ahmed Rajib - 15.11.2022 11:23

what about Picking video with SwiftUI from photos ????

Ответить
Nat Genesis
Nat Genesis - 16.08.2022 05:33

What about picking video from photos ????

Ответить
KD Techniques Official
KD Techniques Official - 10.08.2022 22:05

Can you do the native contacts picker in ios 16 if it's available in ios 16.?

Ответить
KD Techniques Official
KD Techniques Official - 10.08.2022 21:42

I think you're the first one to cover native image picker in ios 16

Ответить
Павел Васильев
Павел Васильев - 27.07.2022 22:52

I can’t figure out how Text called Picker?

Ответить
Brother X
Brother X - 26.07.2022 05:22

Man I really needed this a year ago lol but I'm still glad it's here

Ответить
J T
J T - 17.07.2022 09:54

HI Great videos but one small request, can you also upload in 4K?

Ответить
Thye Chean Lim
Thye Chean Lim - 13.07.2022 05:20

Can you use it for camera source too?

Ответить
Thye Chean Lim
Thye Chean Lim - 12.07.2022 16:10

You mentioned that this works on Apple Watch too - but what is the image type for watchOS? Or can you do a video for watchOS?

Ответить
Bobby Generic
Bobby Generic - 12.07.2022 06:11

Great vid! I recommend an updated fully working StoreKit 2 iap video that handles transactions

Ответить
These Eyes See Darkness Clearly
These Eyes See Darkness Clearly - 12.07.2022 02:02

Quick question. Does this mean I can’t use this photo picking code if I want to make an app for devices running software below iOS 16?

Ответить
These Eyes See Darkness Clearly
These Eyes See Darkness Clearly - 12.07.2022 01:53

So glad we can finally pick images in SwiftUI without all the extra UIKit nonsense!

Ответить
Attack Helicopter Identifier
Attack Helicopter Identifier - 12.07.2022 00:32

Is there a way to save the selected image to a core data model??

Ответить
Glenn Adams
Glenn Adams - 11.07.2022 18:43

Nice tutorial, thanks! Can XCODE 14 be used with legacy UKIit apps (no storyboards) ? Many of us not fully transitioned to Swiftui yet.

Ответить
Victor Rîurean
Victor Rîurean - 11.07.2022 18:01

nice

Ответить