---
title: "setImageWith(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikimageview/setimagewith(_:)"
---

# setImageWith(_:)

Initializes an image view with the image specified by a URL.

## Declaration

```swift
func setImageWith(_ url: URL!)
```

## Parameters

- `url`: The URL that specifies the location of the image.

## Discussion

Discussion This method is the preferred initializer for RAW images. If you use this method for a TIFF file that contains multiple images, only the first image is displayed.

## See Also

### Getting and Setting Images

- [image()](quartz/ikimageview/image().md)
- [setImage(_:imageProperties:)](quartz/ikimageview/setimage(_:imageproperties:).md)
