---
title: "setContentInset(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacegroup/setcontentinset(_:)"
---

# setContentInset(_:)

Sets the distance between the edges of the group and any contained objects.

## Declaration

```swift
func setContentInset(_ contentInset: UIEdgeInsets)
```

## Parameters

- `contentInset`: The insets to apply to contained objects. All inset values are measured in points. Inset values must not be less than 0.

## Discussion

Discussion Use this method to change the default insets you set in Interface Builder. Changes to the content insets of a group are animatable.

## See Also

### Setting the Layout Information

- [setCornerRadius(_:)](watchkit/wkinterfacegroup/setcornerradius(_:).md)
