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

# shadow

The shadow displayed underneath the view.

## Declaration

```swift
@NSCopying var shadow: NSShadow? { get set }
```

## Return Value

Return Value An instance of NSShadow that is created using the shadowColor,shadowOffset, shadowOpacity, and shadowRadius properties of the view’s layer.

## Discussion

Discussion The default value of this property is normally nil. When you configure any of the shadow-related properties on the view’s layer, such as the shadowColor,shadowOffset, shadowOpacity or shadowRadius properties, this property contains the NSShadow object that encapsulates that information. Assigning a new shadow object to this property sets the corresponding shadow-related properties on the view’s layer. If the view does not have a layer, setting the value of this property has no effect.

## See Also

### Managing Layer-Related Properties

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