Комментарии:
This works for me in most cases but a heif photo causes a fatal error. does anyone know any work arounds
ОтветитьHow can i add the image for an array located in a viewModel??
Ответить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.
Ответить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.
Ответить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.
Ответить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'"
ОтветитьPhotoPicker has a variant that accepts @State var selectedPhoto: PhotosPickerItem?
Ответить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.
Ответить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!
Ответитьwhat about Picking video with SwiftUI from photos ????
ОтветитьWhat about picking video from photos ????
ОтветитьCan you do the native contacts picker in ios 16 if it's available in ios 16.?
ОтветитьI think you're the first one to cover native image picker in ios 16
ОтветитьI can’t figure out how Text called Picker?
ОтветитьMan I really needed this a year ago lol but I'm still glad it's here
ОтветитьHI Great videos but one small request, can you also upload in 4K?
ОтветитьCan you use it for camera source too?
Ответить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?
ОтветитьGreat vid! I recommend an updated fully working StoreKit 2 iap video that handles transactions
Ответить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?
ОтветитьSo glad we can finally pick images in SwiftUI without all the extra UIKit nonsense!
ОтветитьIs there a way to save the selected image to a core data model??
ОтветитьNice tutorial, thanks! Can XCODE 14 be used with legacy UKIit apps (no storyboards) ? Many of us not fully transitioned to Swiftui yet.
Ответитьnice
Ответить