Swift: writing to IPTC metadata on download?

Learning Swift and not quite capable of writing the kind of macOS Safari Extention that I would like, I am curious about the limits of Extensions in Safari?


I would like to write a simple download tool that writes specific metadata from a webpage into the image being downloaded e.g. append URL into IPTC:Description field, assuming it can be done e.g. JPEG file format.


I know that the exiv2 library (written in C++) can do this, but am not sure if there is another way with Swift or even if it can be done, or even allowed?


Many thanks.

Post not yet marked as solved Up vote post of forklift Down vote post of forklift
577 views