---
title: ContentMarginPlacement
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/contentmarginplacement
---

# ContentMarginPlacement

The placement of margins.

## Declaration

```swift
struct ContentMarginPlacement
```

## Overview

Overview Different views can support customizating margins that appear in different parts of that view. Use values of this type to customize those margins of a particular placement. For example, use a scrollIndicators placement to customize the margins of scrollable view’s scroll indicators separately from the margins of a scrollable view’s content. Use this type with the contentMargins(_:for:) modifier.

## Topics

### Getting the placement

- [automatic](swiftui/contentmarginplacement/automatic.md)
- [scrollContent](swiftui/contentmarginplacement/scrollcontent.md)
- [scrollIndicators](swiftui/contentmarginplacement/scrollindicators.md)

## See Also

### Setting margins

- [contentMargins(_:for:)](swiftui/view/contentmargins(_:for:).md)
- [contentMargins(_:_:for:)](swiftui/view/contentmargins(_:_:for:).md)
