Why not give devs pvt file bundle, with only image and video, it's not live photo!!! I can't use the quick look framework to preview it, and I also can't share to another app as live photo example: save it back to photos or share it by iMessage 🙄 . I can't understand this design, why not any detail? Another thing is so bad, the music data type has no store ID for musickit play item, so the Apple Journal app can play the music, but other apps can't do it! The live photo is the same. What are you doing Apple?
Very bad journal suggestion api!!!
Resolved (Live Photo Only :(
The photo and video contain live photo metadata, the only missed info is metadata.plist
, just create it (some key code):
static let livePhotoMetadataFileName = "metadata.plist"
static let livePhotoMetadataContent =
"""
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PFVideoComplementMetadataVersionKey</key>
<string>1</string>
</dict>
</plist>
"""
fm.createFile(
atPath: bundleURL.appendingPathComponent(ImageTool.livePhotoMetadataFileName).path,
contents: ImageTool.livePhotoMetadataContent.data(using: .utf8))
Don't forget to move three files into the some.pvt
directory.