swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.4k stars 159 forks source link

Add `.count` and `.date` properties to `Calendar.RecurrenceRule.End` #888

Closed hristost closed 1 month ago

hristost commented 2 months ago

Calendar.RecurrenceRule.End is de-facto an enum, but has been implemented as a struct so we can more easily extend it in the future without breaking ABI. Sadly the current API only provides a way to construct the struct, and does not let us introspect the associated values. This change adds a couple read-only properties to the struct to address this.

hristost commented 2 months ago

~Pending approval of #893~

hristost commented 2 months ago

@swift-ci run

hristost commented 2 months ago

@swift-ci please test

hristost commented 1 month ago

@swift-ci please test

jmschonfeld commented 1 month ago

@swift-ci please test