A wrapper for libwebp + Xcode project. Support Carthage && CocoaPods && SwiftPM.
Go to file
DreamPiggy 19c48d986a
Merge pull request #3 from SDWebImage/swiftpm
Support Swift Package Manager
2019-12-27 11:24:44 +08:00
Xcode Bumped version to 1.0.3 2019-08-07 15:14:41 +08:00
libwebp@0fe1a89dbf Update to v1.0.3 2019-08-07 14:46:35 +08:00
libwebp.xcodeproj Update to v1.0.2 2019-05-15 14:38:26 +08:00
libwebpExample Added Xcode project that builds libwebp as a framework for all 4 platforms + small macos command line example 2018-08-28 15:44:11 +03:00
.gitignore Support Swift Package Manager 2019-10-06 12:37:37 +08:00
.gitmodules Added libwebp dependency 2018-08-28 14:24:53 +03:00
.travis.yml Added Xcode project that builds libwebp as a framework for all 4 platforms + small macos command line example 2018-08-28 15:44:11 +03:00
Package.swift Support Swift Package Manager 2019-10-06 12:37:37 +08:00
README.md Update the readme about Swift Package Manager 2019-10-06 12:54:08 +08:00
libwebp.podspec Bumped version to 1.0.3 2019-08-07 15:14:41 +08:00

README.md

libwebp + Xcode

A wrapper for libwebp + Xcode project. This enables Carthage support This also contains the Swift Package Manager support

CI Status Carthage compatible SwiftPM compatible

Requirements

  • iOS 8
  • macOS 10.6
  • tvOS 9.0
  • watchOS 2.0

Installation

Carthage

libwebp is (via this repo) available through Carthage.

github "SDWebImage/libwebp-Xcode"

SwiftPM

Libwebp is available through Swift Package Manager.

let package = Package(
    dependencies: [
        .package(url: "https://github.com/SDWebImage/libwebp-Xcode", from: "1.0.4")
    ],
    // ...
)

Usage

Use libwebp as you would normally, this is just a repo that adds an Xcode proj.

For Swift Package Manager user, use the modular import instead of C headers.

  • Objective-C
@import libwebp;
  • Swift
import libwebp

License

libwebp is available under the BSD-3 license. See the LICENSE file for more info.