Swift-foundation now available

Yes, CoreFoundation on Darwin is a wrapper for swift-foundation.

For example, here is the entire implementation for CFCalendarCreateWithIdentifier:

CFCalendarRef CFCalendarCreateWithIdentifier(CFAllocatorRef allocator, CFStringRef identifier) {
    return (CFCalendarRef)[NSCalendar _newCalendarWithIdentifier:identifier];
}

Which is a direct call into this Swift code.

6 Likes