SwiftFoundation - 跨平台(支持 Linux)、面向协议编程的 Swift 基础库

1,349 阅读1分钟
原文链接: github.com

Swift Objective-C

README.md

SwiftFoundation

Carthage compatible Join the chat at https://gitter.im/PureSwift/SwiftFoundation

Cross-Platform, Protocol-Oriented Programming base library to complement the Swift Standard Library.

Goals

  • Provide a cross-platform interface that mimics Apple's Foundation framework.
  • Provide a POSIX-based implementation for maximum .portablility
  • Rewrite Foundation with Protocol-Oriented Programming principals.
  • Long-term Pure Swift replacement for the Cocoa frameworks.

Targeted Platforms

  • LLVM Compiler
    • Darwin (OS X, iOS, WatchOS)
    • Linux

Dependencies

Implemented

To see what parts of Foundation are implemented, just look at the unit tests. Completed functionality will be fully unit tested. Note that there are some functionality that is written as a protocol only, that will not be included on this list.

  • Date
  • Null
  • Order (equivalent to NSComparisonResult)
  • SortDescriptor
  • UUID
  • FileManager
  • Data
  • URL
  • RegularExpression (POSIX, not ICU)
  • JSON
  • Base64

License

This program is free software; you can redistribute it and/or modify it under the terms of the MIT License.

See Also

  • cURLSwift - Swift wrapper for cURL
  • SwiftCF - Swift Protocol-Oriented Structs for CoreFoundation