<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICalendarSelectionWeekOfYearDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICalendarSelectionWeekOfYearDelegate"
  },
  "title" : "UICalendarSelectionWeekOfYearDelegate"
}
-->

# UICalendarSelectionWeekOfYearDelegate

A set of methods you implement to provide selectable weeks and handle changes to the week selection in a calendar view.

```
@MainActor protocol UICalendarSelectionWeekOfYearDelegate : NSObjectProtocol
```

## Topics

### Handling week-of-year selections

[`func week(ofYearSelection: UICalendarSelectionWeekOfYear, canSelectWeekOfYear: DateComponents?) -> Bool`](/documentation/UIKit/UICalendarSelectionWeekOfYearDelegate/week(ofYearSelection:canSelectWeekOfYear:))

Determines if a week is available for selection.

[`func week(ofYearSelection: UICalendarSelectionWeekOfYear, didSelectWeekOfYear: DateComponents?)`](/documentation/UIKit/UICalendarSelectionWeekOfYearDelegate/week(ofYearSelection:didSelectWeekOfYear:))

Notifies the delegate after a person selects a week in the calendar view.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)