<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/ShapeConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit18ShapeConfigurationV"
  },
  "title" : "ShapeConfiguration"
}
-->

# ShapeConfiguration

A configuration that specifies the appearance of a shape.

```
struct ShapeConfiguration
```

## Topics

### Creating a configuration

[`init(type: ShapeConfiguration.Shape, fillColor: CGColor?, strokeColor: CGColor?, lineWidth: CGFloat)`](/documentation/PaperKit/ShapeConfiguration/init(type:fillColor:strokeColor:lineWidth:))

Create a new shape configuration.

### Choosing a shape type

[`var type: ShapeConfiguration.Shape`](/documentation/PaperKit/ShapeConfiguration/type)

The type of shape.

[`enum Shape`](/documentation/PaperKit/ShapeConfiguration/Shape)

### Configuring fill and stroke

[`var fillColor: CGColor?`](/documentation/PaperKit/ShapeConfiguration/fillColor)

The fill color of the shape.

[`var strokeColor: CGColor?`](/documentation/PaperKit/ShapeConfiguration/strokeColor)

The stroke color of the shape.

[`var lineWidth: CGFloat`](/documentation/PaperKit/ShapeConfiguration/lineWidth)

The line width of the 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)