Post

Replies

Boosts

Views

Activity

How to get image file name in PHPickerViewController, that is, after selecting multiple images from photo library?
I have followed a basic tutorial for importing multiple images using PHPicker (Link: https://www.youtube.com/watch?v=V-kSSjh1T74&list=PL5Adl54O3opbk_Du94r8OmeSwk2x5dRao&index=15&t=74s). I also want to get their file names along with their images. I got multiples solutions for doing this with UIImagePickerController but none for PHPickerViewController. Any leads would be appreciated. Thanks.
1
0
1.8k
May ’22
Selecting images from Library and putting it in the PKCanvas in Core Data
Can anyone provide resources for Picking multiple images from the image library (I have used PHPicker) and then appending the same number of PKcanvas with those previously selected images as a background image of the canvas in a list? I followed this article to add new canvas by looping the multiple images array and applied it in ContentView: https://blog.devgenius.io/saving-images-in-coredata-8739690d0520 But adding a background image can be done in the UIViewController where the PKCanvasView(Just followed a common PencilKit tutorial) is defined. Any kind of help would be appreciated. Thanks.
0
0
831
May ’22
XCode 13 - SwiftUI - Cannot convert value of type '(() -> Void).Type' to expected argument type '() -> Void'
struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView(pencilAction: () -> Void, fingerAction: () -> Void).environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } } How to pass void functions defined in UIViewController(in UIHostingController) for swiftUI button in ContentView
2
0
4.4k
May ’22