---
title: "setIconImage(_:)"
framework: IOBluetooth UI
role: symbol
role_heading: Instance Method
platforms: [macOS 10.2+]
path: "iobluetoothui/iobluetoothobjectpushuicontroller/seticonimage(_:)"
---

# setIconImage(_:)

Manually sets the icon used in the panel.

## Declaration

```swift
func setIconImage(_ image: NSImage!)
```

## Parameters

- `image`: Image to use as the icon.

## Discussion

Discussion The panel icon should be set to the icon of the calling application. If not set, the panel will try to load up the correct icon for the target device, and will default to the icon of the running application on fail.

## See Also

### Instance Methods

- [beginSheetModal(for:modalDelegate:didEnd:contextInfo:)](iobluetoothui/iobluetoothobjectpushuicontroller/beginsheetmodal(for:modaldelegate:didend:contextinfo:).md)
- [getDevice()](iobluetoothui/iobluetoothobjectpushuicontroller/getdevice().md)
- [getTitle()](iobluetoothui/iobluetoothobjectpushuicontroller/gettitle().md)
- [isTransferInProgress()](iobluetoothui/iobluetoothobjectpushuicontroller/istransferinprogress().md)
- [runModal()](iobluetoothui/iobluetoothobjectpushuicontroller/runmodal().md)
- [runPanel()](iobluetoothui/iobluetoothobjectpushuicontroller/runpanel().md)
- [setTitle(_:)](iobluetoothui/iobluetoothobjectpushuicontroller/settitle(_:).md)
- [stop()](iobluetoothui/iobluetoothobjectpushuicontroller/stop().md)
