<!--
{
  "availability" : [
    "iOS: 16.2.0 -",
    "iPadOS: 16.2.0 -",
    "macCatalyst: 16.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICalendarViewDelegate/calendarView(_:didChangeVisibleDateComponentsFrom:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICalendarViewDelegate(im)calendarView:didChangeVisibleDateComponentsFrom:"
  },
  "title" : "calendarView(_:didChangeVisibleDateComponentsFrom:)"
}
-->

# calendarView(_:didChangeVisibleDateComponentsFrom:)

```
optional func calendarView(_ calendarView: UICalendarView, didChangeVisibleDateComponentsFrom previousDateComponents: DateComponents)
```

## Parameters

`calendarView`

The @c UICalendarView

`previousDateComponents`

The previous date components before the visible date components changed.

## Discussion\abstract Called when the visible date has changed from @c previousDateComponents from user interaction.

---

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)