<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Get_EXIF_Data_from_Image_in_Swift</id>
	<title>Get EXIF Data from Image in Swift - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Get_EXIF_Data_from_Image_in_Swift"/>
	<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Get_EXIF_Data_from_Image_in_Swift&amp;action=history"/>
	<updated>2026-05-18T11:44:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Get_EXIF_Data_from_Image_in_Swift&amp;diff=5152&amp;oldid=prev</id>
		<title>PeterHarding: Created page with &quot; This seems to work: &lt;pre&gt;  import ImageIO ...  func getExif(_ uRLToTheImageFile: URL) {     if let imageSource = CGImageSourceCreateWithURL(fileURL as CFURL, nil) {         l...&quot;</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Get_EXIF_Data_from_Image_in_Swift&amp;diff=5152&amp;oldid=prev"/>
		<updated>2021-10-16T10:53:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; This seems to work: &amp;lt;pre&amp;gt;  import ImageIO ...  func getExif(_ uRLToTheImageFile: URL) {     if let imageSource = CGImageSourceCreateWithURL(fileURL as CFURL, nil) {         l...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
This seems to work:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import ImageIO&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
func getExif(_ uRLToTheImageFile: URL)&lt;br /&gt;
{&lt;br /&gt;
    if let imageSource = CGImageSourceCreateWithURL(fileURL as CFURL, nil) {&lt;br /&gt;
        let imageProperties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, nil)&lt;br /&gt;
        if let dict = imageProperties as? [String: Any] {&lt;br /&gt;
            print(dict)&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From - http://stackoverflow.com/questions/40175160/exif-data-read-and-write&lt;br /&gt;
&lt;br /&gt;
[[Category:Swift]]&lt;br /&gt;
[[Category:Swift 3]]&lt;br /&gt;
[[Category:IOS]]&lt;br /&gt;
[[Category:Examples]]&lt;/div&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
</feed>