A Swift library for creating, reading, and modifying ZIP archive files with high performance and a modern API.
ZIP Foundation is a Swift library for creating, reading, and modifying ZIP archive files. It solves the problem of handling ZIP archives in Swift applications by providing a native, high-performance API that leverages Apple's libcompression for efficiency and supports cross-platform development.
Swift developers building applications for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS) or Linux who need to work with ZIP archives for file compression, extraction, or manipulation.
Developers choose ZIP Foundation for its modern Swift API, high performance through Apple's libcompression, lack of third-party dependencies on Apple platforms, and comprehensive feature set including in-memory archives and progress tracking.
Effortless ZIP Handling in Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a clean, intuitive Swift interface for ZIP operations, as shown in the usage examples with FileManager extensions and Archive objects.
Leverages Apple's libcompression on Apple platforms for fast and energy-efficient operations, with benchmarks discussed in the linked blog post.
Works on all major Apple platforms (iOS, macOS, etc.) and Linux, making it versatile for Swift projects across ecosystems.
Allows processing ZIP archives entirely in RAM without disk I/O, useful for dynamic archive creation for network transmission.
Integrates with Foundation's Progress objects for tracking and canceling operations, as detailed in the advanced usage section.
The README does not mention encryption for ZIP files, a common feature for secure archives, limiting use in security-sensitive applications.
On Linux, it requires the zlib development package as a dependency, which adds complexity compared to the dependency-free Apple platforms.
With version 0.9.0, it may have breaking changes in future updates, as it hasn't reached a stable major release yet.