Latest 0.1.1
Homepage https://github.com/touyu/BlurKit
License MIT
Platforms ios 10.0
Authors

BlurKit

BlurKit

BlurKit
BlurKit
BlurKit

A lightweight library that can easily blur the view.

Features

  • [x] Without inheritance
  • [x] Corresponds to UIView, UIImageView, UILabel etc…
  • [x] Adjustable blur condition
  • [x] Lightweight

Usage

BlurKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.bk.addBlur(blurRadius: 0)

        UIView.animate(withDuration: 5) {
            self.view.bk.blurRadius = 5
        }
    }
}
label.bk.addBlur(blurRadius: 3, colorTint: .white, colorTintAlpha: 0.4)
imageView.bk.addBlur(blurRadius: 4, colorTint: .white, colorTintAlpha: 0.2)
view.bk.removeBlur()
view.bk.isBlurHidden = true // or false

Installation

Carthage

Add this to Cartfile

github "touyu/BlurKit" ~> 0.1
$ carthage update --platform iOS

CocoaPods

# Podfile
use_frameworks!

target 'YOUR_TARGET_NAME' do
    pod 'BlurKit',    '~> 0.1'
end
$ pod install

⚠️ Caution

Because BlurKit uses the Private API, please use it carefully.

Latest podspec

{
    "name": "BlurKit",
    "version": "0.1.1",
    "summary": "A lightweight library that can easily blur the view.",
    "homepage": "https://github.com/touyu/BlurKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "touyu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/touyu/BlurKit.git",
        "tag": "0.1.1"
    },
    "source_files": "BlurKit/**/*.{swift}",
    "swift_version": "4.2",
    "platforms": {
        "ios": "10.0"
    }
}

Pin It on Pinterest

Share This