<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImage/init(imageLiteralResourceName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So7UIImageC5UIKitE24imageLiteralResourceNameABSS_tcfc"
  },
  "title" : "init(imageLiteralResourceName:)"
}
-->

# init(imageLiteralResourceName:)

Returns the image object for the specified resource.

```
required convenience init(imageLiteralResourceName name: String)
```

## Parameters

`name`

The name of the file or image asset.

## Return Value

The image object.

---

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)