---
title: "ConcentricRectangle Components | Explore SwiftUI"
description: "A shape that is replaced by a concentric version of the current container shape. If the container shape is a rectangle derived shape with four corners, this shape could choose to respect corners individually"
canonical_url: "https://exploreswiftui.com/library/concentricrectangle"
meta:
  author: "Explore SwiftUI"
  "og:description": "A shape that is replaced by a concentric version of the current container shape. If the container shape is a rectangle derived shape with four corners, this shape could choose to respect corners individually"
  "og:image": "https://exploreswiftui.com/_og/d/c_Default%2Ctitle_ConcentricRectangle%2BComponents%2Cdescription_Explore%2B2%2BSwiftUI%2Bcomponents%2Bvisually%2Cp_Ii9saWJyYXJ5L2NvbmNlbnRyaWNyZWN0YW5nbGUi%2Cs_6eIHFVmWCpizEtMr.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "ConcentricRectangle Components | Explore SwiftUI"
  "twitter:description": "A shape that is replaced by a concentric version of the current container shape. If the container shape is a rectangle derived shape with four corners, this shape could choose to respect corners individually"
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Default%2Ctitle_ConcentricRectangle%2BComponents%2Cdescription_Explore%2B2%2BSwiftUI%2Bcomponents%2Bvisually%2Cp_Ii9saWJyYXJ5L2NvbmNlbnRyaWNyZWN0YW5nbGUi%2Cs_6eIHFVmWCpizEtMr.png"
  "twitter:title": "ConcentricRectangle Components | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

# **ConcentricRectangle Components**

A shape that is replaced by a concentric version of the current container shape. If the container shape is a rectangle derived shape with four corners, this shape could choose to respect corners individually.

2 components

![Uniform Concentric Rectangle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/154/variants/500?v=1795085724134&r=2&w=412&q=75&f=webp)

### **Uniform Concentric Rectangle**

Create a rectangle with the same corner style set on four corners.

![Concentric Rectangle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/153/variants/498?v=1795085729542&r=2&w=412&q=75&f=webp)

### **Concentric Rectangle**

A concentric rectangle whose corner radii are defined from the same circle center as its parent element. The outermost parent is the device frame.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/concentricrectangle#webpage","description":"A shape that is replaced by a concentric version of the current container shape. If the container shape is a rectangle derived shape with four corners, this shape could choose to respect corners individually","inLanguage":"en-US","name":"ConcentricRectangle Components","url":"https://exploreswiftui.com/library/concentricrectangle","@type":["WebPage","CollectionPage"],"about":{"@id":"https://developer.apple.com/documentation/swiftui"},"breadcrumb":{"@id":"https://exploreswiftui.com/library/concentricrectangle#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/concentricrectangle#itemlist"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/concentricrectangle"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/concentricrectangle#itemlist","@type":"ItemList","name":"ConcentricRectangle Components","numberOfItems":2,"itemListElement":[{"@type":"ListItem","position":1,"name":"Uniform Concentric Rectangle","url":"https://exploreswiftui.com/library/concentricrectangle/uniform-concentric-rectangle"},{"@type":"ListItem","position":2,"name":"Concentric Rectangle","url":"https://exploreswiftui.com/library/concentricrectangle/concentric-rectangle"}]},{"@id":"https://exploreswiftui.com/library/concentricrectangle#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"ConcentricRectangle","item":"https://exploreswiftui.com/library/concentricrectangle","position":2}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"}]}
```