SwiftyDeflate v1.0.0 Release Notes
馃帀 We are thrilled to announce the first major release of SwiftyDeflate, your Swift-powered solution for efficient data compression and decompression!
Features:
-
Efficient Compression & Decompression:
- Utilize the power of zlib under the hood, ensuring you get the best-in-class data compression.
-
Simple-to-use API:
- Intuitive methods for data compression (
deflateCompress) and decompression (deflateDecompress).
- Intuitive methods for data compression (
-
Data Extension:
- Use compression and decompression directly on
Dataobjects with our Swift extension, making it even easier to integrate SwiftyDeflate into your projects.
- Use compression and decompression directly on
-
Customization:
- Optional parameters for compression level and windowBits, giving you the flexibility to choose between compression speed and size.
-
Robust Error Handling:
- Comprehensive error enumeration (
StreamError) helps you to handle and diagnose issues effectively.
- Comprehensive error enumeration (
Improvements:
- Improved memory management for the internal compression streams.
- Cleaner and more modular code structure.
Getting Started:
Integrating SwiftyDeflate is as simple as importing the package and calling the desired compression or decompression function on your Data objects.
import SwiftyDeflate
do {
let compressedData = try originalData.deflateCompress()
let decompressedData = try compressedData.deflateDecompress()
// Use the compressed and decompressed data as needed
} catch {
print("Error during operation: \(error.localizedDescription)")
}Thank You:
A huge thanks to the community for the feedback, issues reported, and contributions made. We look forward to your continued support and feedback.
Happy compressing! 馃殌