---
title: ContainerRelativeShape
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/containerrelativeshape
---

# ContainerRelativeShape

A shape whose dimensions the system calculates from an inset version of the current container shape.

## Declaration

```swift
@frozen struct ContainerRelativeShape
```

## Overview

Overview If there is not a current container shape, the system provides a rectangle.

## Topics

### Creating the shape

- [init()](swiftui/containerrelativeshape/init().md)

## Relationships

### Conforms To

- [Animatable](swiftui/animatable.md)
- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [InsettableShape](swiftui/insettableshape.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Shape](swiftui/shape.md)
- [View](swiftui/view.md)

## See Also

### Setting a container shape

- [containerShape(_:)](swiftui/view/containershape(_:).md)
- [InsettableShape](swiftui/insettableshape.md)
