---
title: "shape(_:eoFill:size:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/pointerstyle/shape(_:eofill:size:)"
---

# shape(_:eoFill:size:)

Initializes a pointer style with a given shape.

## Declaration

```swift
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

Discussion For guidance on using a custom pointer, refer to Pointing devices in the Human Interface Guidelines. You may apply this pointer style to a single view or a view hierarchy using the pointerStyle(_:) modifier.

## See Also

### Creating custom pointer styles

- [image(_:hotSpot:)](swiftui/pointerstyle/image(_:hotspot:).md)
