---
title: imageHugsTitle
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbutton/imagehugstitle
---

# imageHugsTitle

A Boolean value that determines how the button’s image and title are positioned together within the button bezel.

## Declaration

```swift
var imageHugsTitle: Bool { get set }
```

## Discussion

Discussion When the value of this property is false (the default value), the button’s image is positioned according to the imagePosition property at the edge of the button bezel, and the title is positioned within the remaining space. When this property is true, the button’s image is positioned directly adjacent to the title based on the imagePosition property, and the image and title are positioned within the button bezel as a single unit.

## See Also

### Configuring button images

- [image](appkit/nsbutton/image.md)
- [alternateImage](appkit/nsbutton/alternateimage.md)
- [imagePosition](appkit/nsbutton/imageposition.md)
- [NSControl.ImagePosition](appkit/nscontrol/imageposition.md)
- [isBordered](appkit/nsbutton/isbordered.md)
- [isTransparent](appkit/nsbutton/istransparent.md)
- [bezelStyle](appkit/nsbutton/bezelstyle-swift.property.md)
- [bezelColor](appkit/nsbutton/bezelcolor.md)
- [showsBorderOnlyWhileMouseInside](appkit/nsbutton/showsborderonlywhilemouseinside.md)
- [imageScaling](appkit/nsbutton/imagescaling.md)
