---
title: isTransparent
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbutton/istransparent
---

# isTransparent

A Boolean value that indicates whether the button is transparent.

## Declaration

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

## Discussion

Discussion The value of this property is true if the button is transparent, false otherwise. A transparent button never draws itself, but it receives mouse events, sends its action, and tracks the mouse properly. A transparent button can be useful for sensitizing an area on the screen so that an action gets sent to a target when the area receives a mouse click. Setting this property causes the button to redraw if necessary.

## 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)
- [bezelStyle](appkit/nsbutton/bezelstyle-swift.property.md)
- [bezelColor](appkit/nsbutton/bezelcolor.md)
- [showsBorderOnlyWhileMouseInside](appkit/nsbutton/showsborderonlywhilemouseinside.md)
- [imageHugsTitle](appkit/nsbutton/imagehugstitle.md)
- [imageScaling](appkit/nsbutton/imagescaling.md)
