Skip to content

💮 A high performance blur effect on image in pure Swift.

License

Notifications You must be signed in to change notification settings

showxu/BlurEffect

Repository files navigation

BlurEffect

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

A high performance blur effect on image in pure Swift.

Features

  1. vImage based box blur
  2. stack blur
  3. OpenGL texture blur

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 'BlurEffect', :git => 'https://github.com/0xxd0/BlurEffect.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 BlurEffect

With CocoaPods, specify BlurEffect in your Podfile:

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

target '<#Your Target#>' do
    pod 'BlurEffect', '~> 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 BlurEffect

Add following to Cartfile:

github "0xxd0/BlurEffect" ~> 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 BlurEffect

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

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

Manually

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

Usage

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

License

license

This project is released under the MIT License.

About

💮 A high performance blur effect on image in pure Swift.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published