<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImageReader-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit13UIImageReaderV"
  },
  "title" : "UIImageReader"
}
-->

# UIImageReader

```
struct UIImageReader
```

## Topics

### Structures

[`struct Configuration`](/documentation/UIKit/UIImageReader-swift.struct/Configuration-swift.struct)

The properties that a reader uses to decode images.

### Initializers

[`init(configuration: UIImageReader.Configuration)`](/documentation/UIKit/UIImageReader-swift.struct/init(configuration:))

### Instance Properties

[`var configuration: UIImageReader.Configuration`](/documentation/UIKit/UIImageReader-swift.struct/configuration-swift.property)

### Instance Methods

[`func image(contentsOf: URL) async -> UIImage?`](/documentation/UIKit/UIImageReader-swift.struct/image(contentsOf:)-1p5sc)

[`func image(contentsOf: URL) -> UIImage?`](/documentation/UIKit/UIImageReader-swift.struct/image(contentsOf:)-94s2r)

[`func image(data: Data) async -> UIImage?`](/documentation/UIKit/UIImageReader-swift.struct/image(data:)-5c16z)

[`func image(data: Data) -> UIImage?`](/documentation/UIKit/UIImageReader-swift.struct/image(data:)-5gx82)

### Type Properties

[`static let `default`: UIImageReader`](/documentation/UIKit/UIImageReader-swift.struct/default)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)