---
title: imageView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibutton/imageview
---

# imageView

The button’s image view.

## Declaration

```swift
var imageView: UIImageView? { get }
```

## Discussion

Discussion Although this property is read-only, its own properties are read/write. Use these properties to configure the appearance and behavior of the button’s view. For example: UIButton *button                   = [UIButton buttonWithType: UIButtonTypeSystem]; button.imageView.exclusiveTouch    = YES; The imageView property returns a value even if the button has not been displayed yet. The value of the property is nil for system buttons.

## See Also

### Getting the current state

- [buttonType](uikit/uibutton/buttontype-swift.property.md)
- [currentTitle](uikit/uibutton/currenttitle.md)
- [currentAttributedTitle](uikit/uibutton/currentattributedtitle.md)
- [currentTitleColor](uikit/uibutton/currenttitlecolor.md)
- [currentTitleShadowColor](uikit/uibutton/currenttitleshadowcolor.md)
- [currentImage](uikit/uibutton/currentimage.md)
- [currentBackgroundImage](uikit/uibutton/currentbackgroundimage.md)
- [currentPreferredSymbolConfiguration](uikit/uibutton/currentpreferredsymbolconfiguration.md)
- [subtitleLabel](uikit/uibutton/subtitlelabel.md)
