Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 1 replies, 0 views
Got the solution:
Inside the 'picker' function func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) { } while iterating through the imported images array put
guard let imgFileName = photo.itemProvider.suggestedName else { return }
for each image, the 'imgFileName' will give the file name in string (without file extension though).