<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButton/imageHugsTitle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSButton(py)imageHugsTitle"
  },
  "title" : "imageHugsTitle"
}
-->

# imageHugsTitle

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

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

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/false> (the default value), the button’s image is positioned according to the [`imagePosition`](/documentation/AppKit/NSButton/imagePosition) property at the edge of the button bezel, and the title is positioned within the remaining space.

When this property is <doc://com.apple.documentation/documentation/Swift/true>, the button’s image is positioned directly adjacent to the title based on the [`imagePosition`](/documentation/AppKit/NSButton/imagePosition) property, and the image and title are positioned within the button bezel as a single unit.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)