Swiftpack.co - Package - piemonte/Blurry

Blurry

Blurry 🌫

Image blurring in Swift.

Build Status Pod Version Swift Version GitHub license

This library is a small CoreImage wrapper that performs a variety of blurring techniques based on the given parameters.

Quick Start

Blurry is available and recommended for installation using the Cocoa dependency manager CocoaPods. You can also simply copy the Blurry.swift file into your Xcode project.

Installation

# CocoaPods
swift_version = "4.0"
pod "Blurry", "~> 0.0.5"

# Carthage
github "piemonte/Blurry" ~> 0.0.5

# SwiftPM
let package = Package(
    dependencies: [
        .Package(url: "https://github.com/piemonte/Blurry", majorVersion: 0)
    ]
)

Usage

import Blurry
// using UIImage extension, an example with a few parameters
let blurryImage = originalImage.blurryImage(blurRadius: 12.0)

// or if you prefer no extension, an example with more parameters
let blurryImage = Blurry.blurryImage(withOptions: BlurryOptions.pro, overlayColor: overlayColor, forImage: sampleImage, size: sampleImage.size, blurRadius: 12.0)

License

Blurry is available under the MIT license, see the LICENSE file for more information.

Github

link
Stars: 47
Help us keep the lights on

Dependencies

Used By

Total: 0