---
title: alphaValue
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/alphavalue
---

# alphaValue

The opacity of the view.

## Declaration

```swift
var alphaValue: CGFloat { get set }
```

## Discussion

Discussion This property contains the opacity value from the view’s layer. The acceptable range of values for this property are between 0.0 (transparent) and 1.0 (opaque). The default value of this property is 1.0.

## See Also

### Managing Layer-Related Properties

- [frameCenterRotation](appkit/nsview/framecenterrotation.md)
- [backgroundFilters](appkit/nsview/backgroundfilters.md)
- [compositingFilter](appkit/nsview/compositingfilter.md)
- [contentFilters](appkit/nsview/contentfilters.md)
- [shadow](appkit/nsview/shadow.md)
