Saving Live Photos to CoreData in SwiftUI

I currently have an app that allows users to import photos, the photos are then stored in CoreData as Binary Data and then synced with iCloud. When a user wants to view the photo, I display the photo to them with Image(uiImage: UIImage(data: savedImageData)).

I would like to allow users to upload live photos to the application as well, and have them saved into CoreData. I have tried searching online but haven't found a concrete process to do this. So how does one save Live Photos into CoreData?

P.S. I am saving the photos from a UIImagePickerController wrapped as UIViewControllerRepresentable to input my images currently, if something else is required to get the Live Photo component as well I am open to suggestions.

Did you ever figure this out?

Saving Live Photos to CoreData in SwiftUI
 
 
Q