<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/FillShapeView",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13FillShapeViewV"
  },
  "title" : "FillShapeView"
}
-->

# FillShapeView

A shape provider that fills its shape.

```
@frozen nonisolated struct FillShapeView<Content, Style, Background> where Content : Shape, Style : ShapeStyle, Background : View
```

## Overview

You do not create this type directly, it is the return type of `Shape.fill`.

## Topics

### Creating a stroke shape view

[`init(shape:style:fillStyle:background:)`](/documentation/SwiftUI/FillShapeView/init(shape:style:fillStyle:background:))

Create a FillShapeView.

### Getting shape view properties

[`background`](/documentation/SwiftUI/FillShapeView/background)

The background shown beneath this view.

[`fillStyle`](/documentation/SwiftUI/FillShapeView/fillStyle)

The fill style used when filling this view’s shape.

[`shape`](/documentation/SwiftUI/FillShapeView/shape)

The shape that this type draws and provides for other drawing
operations.

[`style`](/documentation/SwiftUI/FillShapeView/style)

The style that fills this view’s shape.



---

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)