mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Fix: Cannot save photos without creation date
This commit is contained in:
1 parent
d748167f0e
commit
3551c1a006
2 files changed
+8
-8
No files matched your search
@@ -40,13 +40,13 @@ struct PhotoManager {
|
||||
|
||||
// Extract creation date for image and video
|
||||
for sourceURL in urls {
|
||||
if let (type, date) = EXIFUtils.originalDate(from: sourceURL) {
|
||||
if type == .image {
|
||||
imageItems.append(ImageItem(fileURL: sourceURL, creationDate: date))
|
||||
}
|
||||
if type == .video {
|
||||
videoItems.append(VideoItem(fileURL: sourceURL, creationDate: date))
|
||||
}
|
||||
let (type, date) = EXIFUtils.originalDate(from: sourceURL)
|
||||
|
||||
if type == .image {
|
||||
imageItems.append(ImageItem(fileURL: sourceURL, creationDate: date))
|
||||
}
|
||||
if type == .video {
|
||||
videoItems.append(VideoItem(fileURL: sourceURL, creationDate: date))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user