---
title: shadowOffset
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nsshadow/shadowoffset
---

# shadowOffset

The shadow’s relative position, which you specify with horizontal and vertical offset values.

## Declaration

```swift
var shadowOffset: CGSize { get set }
```

## Discussion

Discussion This property contains the horizontal and vertical offset values that you specify using the width and height fields of the CGSize or NSSize data type. These offsets use the default user coordinate space and are not affected by custom transformations. Positive offset values extend down and to the right from the user’s perspective. note: In macOS 10.15 and earlier, if you add a shadow to a layer that has a different graphics context, then positive offset values might extend up and to the right from the user’s perspective, instead of down and to the right as usual.

## See Also

### Managing a shadow

- [shadowBlurRadius](uikit/nsshadow/shadowblurradius.md)
- [shadowColor](uikit/nsshadow/shadowcolor.md)
