<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PointerStyle/shape(_:eoFill:size:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12PointerStyleV5shape_6eoFill4sizeACx_SbSo6CGSizeVtAA5ShapeRzlFZ"
  },
  "title" : "shape(_:eoFill:size:)"
}
-->

# shape(_:eoFill:size:)

Initializes a pointer style with a given shape.

```
static func shape(_ shape: some Shape, eoFill: Bool = false, size: CGSize) -> PointerStyle
```

## Parameters

`shape`

The pointer shape.

`eoFill`

A Boolean that indicates whether the shape is interpreted
with the even-odd winding number rule.

`size`

The size of the pointer shape.

## Discussion

For guidance on using a custom pointer, refer to
<doc://com.apple.documentation/design/Human-Interface-Guidelines/pointing-devices>
in the Human Interface Guidelines.

You may apply this pointer style to a single view or a view hierarchy
using the [`pointerStyle(_:)`](/documentation/SwiftUI/View/pointerStyle(_:)) modifier.

---

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)