<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSWrapCalendarComponents-api",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "NSWrapCalendarComponents"
}
-->

# NSWrapCalendarComponents

A legacy constant used to control overflow in date calculations.

## Discussion> Deprecated:
> Use ``doc://com.apple.foundation/documentation/Foundation/NSCalendar/Options/wrapComponents`` instead.

## Topics

### Constants

[`var NSWrapCalendarComponents: Int`](/documentation/Foundation/NSWrapCalendarComponents)

Specifies that the components specified for an `NSDateComponents` object should be incremented and wrap around to zero/one on overflow, but should not cause higher units to be incremented.



---

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)