---
title: ContentMarginGuide
framework: SwiftUI
role: symbol
role_heading: Structure
platforms: [iOS 27.1+, iPadOS 27.1+, Mac Catalyst 27.1+, macOS 27.1+, tvOS 27.1+, visionOS 27.1+, watchOS 27.1+]
path: swiftui/contentmarginguide
---

# ContentMarginGuide

A guide for resolving the content margins for a view.

## Declaration

```swift
struct ContentMarginGuide
```

## Overview

Overview Apply a guide to a view with the contentMargins(for:edges:alignment:) modifier, or read its value from a GeometryProxy. SwiftUI provides container.

## Topics

### Type Properties

- [container](swiftui/contentmarginguide/container.md)
