---
title: "init(name:bundle:)"
framework: developertoolssupport
role: symbol
role_heading: Initializer
path: "developertoolssupport/imageresource/init(name:bundle:)"
---

# init(name:bundle:)

Creates an image from a resource with the specified name in the given bundle.

## Declaration

```swift
init(name: String, bundle: Bundle)
```
