This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AVFoundation | |
import CoreLocation | |
import OSLog | |
private let logger = Logger(subsystem: "utilities", category: "images") | |
/// Adds the GPS metadata from `location` to the image file at `url` without re-encoding the image. | |
/// - Note: The image at `url` must be `JPG` or `HEIC` format. `HEIF` will not work. | |
/// - Warning: The file at `url` will be overwritten with a new file containing the updated metadata. | |
/// - Parameters: |