<!--
{
  "availability" : [
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceGroup/setContentInset(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceGroup(im)setContentInset:"
  },
  "title" : "setContentInset(_:)"
}
-->

# setContentInset(_:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)