<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICalendarView/Decoration/customView(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICalendarViewDecoration(cm)decorationWithCustomViewProvider:"
  },
  "title" : "customView(_:)"
}
-->

# customView(_:)

Creates a new calendar view decoration with a custom view, using your view provider.

```
class func customView(_ customViewProvider: @escaping () -> UIView) -> Self
```

## Parameters

`customViewProvider`

A block of code that creates and returns a calendar view decoration.

## Return Value

A calendar view decoration.

## Discussion

Create and return a decoration view for the calendar view in your `customViewProvider` block. The calendar view will clip the decoration view to its parent’s bounds. The decoration view may not have any interactions.

---

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)