Foundation package provides Swift implementation of Foundation for all Swift platforms.
The following types are available in the preview package, with more to come later. Many types, including JSONEncoder
, Calendar
, TimeZone
, and Locale
are all-new Swift implementations. FormatStyle
and ParseStyle
available as open source for the first time.
- FoundationEssentials
AttributedString
Data
Date
DateInterval
JSONEncoder
JSONDecoder
Predicate
String
extensionsUUID
- Internationalization
Calendar
TimeZone
Locale
DateComponents
FormatStyle
ParseStrategy
This is still a preview version, so use with caution!
GitHub: swift-foundation
Swift Blog: Foundation Package Preview Now Available