1024jp / Gzipswift
Licence: mit
Swift framework that enables gzip/gunzip Data using zlib
Stars: ✭ 356
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Gzipswift
Validatedpropertykit
Easily validate your Properties with Property Wrappers 👮
Stars: ✭ 701 (+96.91%)
Mutual labels: cocoapods, carthage, spm
Color
Color utilities for macOS, iOS, tvOS, and watchOS
Stars: ✭ 145 (-59.27%)
Mutual labels: cocoapods, carthage, spm
Swiftysound
SwiftySound is a simple library that lets you play sounds with a single line of code.
Stars: ✭ 995 (+179.49%)
Mutual labels: cocoapods, carthage, spm
Sketchkit
A lightweight auto-layout DSL library for iOS & tvOS.
Stars: ✭ 40 (-88.76%)
Mutual labels: cocoapods, carthage, spm
Orsserialport
Serial port library for Objective-C and Swift macOS apps
Stars: ✭ 609 (+71.07%)
Mutual labels: framework, cocoapods, carthage
Bow
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift
Stars: ✭ 538 (+51.12%)
Mutual labels: cocoapods, carthage, spm
Sheeeeeeeeet
Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.
Stars: ✭ 1,177 (+230.62%)
Mutual labels: cocoapods, carthage, spm
Simpleimageviewer
A snappy image viewer with zoom and interactive dismissal transition.
Stars: ✭ 408 (+14.61%)
Mutual labels: cocoapods, carthage, spm
Swiftframeworktemplate
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file
Stars: ✭ 527 (+48.03%)
Mutual labels: framework, cocoapods, carthage
Aksidemenu
Beautiful iOS side menu library with parallax effect. Written in Swift
Stars: ✭ 216 (-39.33%)
Mutual labels: cocoapods, carthage, spm
Shsearchbar
The search bar that doesn't suck.
Stars: ✭ 206 (-42.13%)
Mutual labels: cocoapods, carthage, spm
Mbpopup
macOS status bar popups done right 😎
Stars: ✭ 89 (-75%)
Mutual labels: framework, cocoapods, carthage
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+231.46%)
Mutual labels: framework, cocoapods, carthage
Buymeacoffee
Buy Me a Coffee framework for iOS
Stars: ✭ 145 (-59.27%)
Mutual labels: framework, cocoapods, spm
Functionkit
A framework for functional types and operations designed to fit naturally into Swift.
Stars: ✭ 302 (-15.17%)
Mutual labels: cocoapods, carthage
Xlactioncontroller
Fully customizable and extensible action sheet controller written in Swift
Stars: ✭ 3,228 (+806.74%)
Mutual labels: cocoapods, carthage
Observable
The easiest way to observe values in Swift.
Stars: ✭ 346 (-2.81%)
Mutual labels: cocoapods, carthage
Anyformatkit
Simple text formatting in Swift
Stars: ✭ 296 (-16.85%)
Mutual labels: cocoapods, carthage
Ioniconskit
Use Ionicons in your Swift projects.
Stars: ✭ 310 (-12.92%)
Mutual labels: cocoapods, carthage
GzipSwift
GzipSwift is a framework with an extension of Data written in Swift. It enables compress/decompress gzip using zlib.
- Requirements: OS X 10.9 / iOS 8 / watchOS 2 / tvOS 9 or later
- Swift version: Swift 5.0, 5.1
Usage
import Gzip
// gzip
let compressedData: Data = try! data.gzipped()
let optimizedData: Data = try! data.gzipped(level: .bestCompression)
// gunzip
let decompressedData: Data
if data.isGzipped {
decompressedData = try! data.gunzipped()
} else {
decompressedData = data
}
Installation
Swift Package Manager
GzipSwift is SwiftPM-compatible. To install, add this package to your Package.swift
or your Xcode project.
For Linux
-
Install zlib if you haven't installed yet:
$ apt-get install zlib-dev
-
Add this package to your package.swift.
-
If Swift build failed with a linker error:
- check if libz.so is in your /usr/local/lib
- if no, reinstall zlib as step (1)
- if yes, link the library manually by passing '-Xlinker -L/usr/local/lib' with
swift build
- check if libz.so is in your /usr/local/lib
Carthage
GzipSwift is Carthage-compatible. To install, add the following line to your Cartfile
:
github "1024jp/GzipSwift"
CocoaPods
GzipSwift is available through CocoaPods. To install, add the following line to your Podfile
:
pod 'GzipSwift'
Manual Installation
- Open Gzip.xcodeproj on Xcode and build Gzip framework for your target platform.
- Append the built
Gzip.framework
to your project. - Go to General pane of the application target in your project. Add
Gzip.framework
to the Embedded Binaries section.
License
© 2014-2020 1024jp
GzipSwift is distributed under the terms of the MIT License. See LICENSE for details.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].