Skip to content

🖼 An elegant image utils & toolbox framework like Android Palette in pure Swift.

License

Notifications You must be signed in to change notification settings

showxu/ImageUtils

Repository files navigation

ImageUtils

Travis CI CocoaPods Carthage compatible SPM compatible Join the chat at https://gitter.im/0xxd0/ImageUtils

An elegant image utils & toolbox framework in pure Swift.

Features

  1. vImage based blur
  2. Android Palette in Swift
  3. Quartz2D drawing

Requirement

platform language Swift Version GitHub code size in bytes

Required

  • Xcode 9.0+
  • iOS 8.0+ | macOS 10.10+ | tvOS 9.0+ | watchOS 2.0+
  • Swift 3.2+

Installation

CocoaPods

⚠️ Comming soon, you can use the master branch of the repository for now.

target '<#Your Target#>' do
    pod 'ImageUtils', :git => 'https://github.com/0xxd0/ImageUtils.git'
end

CocoaPods CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 41 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly.

Install Cocoapods

$ gem install cocoapods

Integrate ImageUtils

With CocoaPods, specify ImageUtils in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target '<#Your Target#>' do
    pod 'ImageUtils', '~> 0.0.1'
end

run pod install:

$ pod install

Carthage

Carthage builds your dependencies and provides you with binary frameworks, but you retain full control over your project structure and setup. Carthage does not automatically modify your project files or your build settings.

Install Carthage

$ brew update
$ brew install carthage

Integrate ImageUtils

Add following to Cartfile:

github "0xxd0/ImageUtils" ~> 0.0.1

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

⚠️ SPM only support macOS or Linux.

Integrate ImageUtils

// Package.swift
// swift-tools-version:3.0

let package = Package(
    name: "<#Your Target#>",
    dependencies: [
        // ···
        .Package(url: "https://github.com/0xxd0/ImageUtils.git", majorVersion: 0)
        // ···
    ]
)

Manually

Download zip or clone repo and integrate into your project manually.

Usage

Clone the project and see the Spotlight.playground for detail usage.

License

license

This project is released under the MIT License.

About

🖼 An elegant image utils & toolbox framework like Android Palette in pure Swift.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published