<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIShapeProvider-60loj",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit15UIShapeProviderP"
  },
  "title" : "UIShapeProvider"
}
-->

# UIShapeProvider

An interface for a type that provides a custom shape by resolving it dynamically based on a context.

```
protocol UIShapeProvider : Equatable
```

## Topics

### Resolving a custom shape

[`func resolve(in: Self.Context) -> Self.Resolved`](/documentation/UIKit/UIShapeProvider-60loj/resolve(in:))

Resolves the shape in the provided context.

### Supporting types

[`typealias Context`](/documentation/UIKit/UIShapeProvider-60loj/Context)

The context for resolving a dynamic shape.

[`typealias Resolved`](/documentation/UIKit/UIShapeProvider-60loj/Resolved)

A shape that has completely resolved based on a context.

## Relationships

### Inherits From

[`Equatable`](/documentation/Swift/Equatable)

### Conforming Types

[`UIShape-swift.struct`](/documentation/UIKit/UIShape-swift.struct)

---

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)