EABlurView 1.0.0

EABlurView 1.0.0

Maintained by Meniny.



Meet EABlurView

EABlurView

Author EMail MIT
Version Platforms Swift
Build Passing Cocoapods Carthage SPM

🏵 Introduction

EABlurView is Dynamic Blur View.

📋 Requirements

Type Requirement

Platform

iOS

8.0

macOS

N/A

tvOS

N/A

watchOS

N/A

Linux

N/A

IDE

Xcode

10.2

Language

Swift

5

📲 Installation

CocoaPods

EABlurView is available on CocoaPods.

use_frameworks!
pod 'EABlurView'

Manually

Copy all files in the EABlurView directory into your project.

🛌 Dependency

📱 Sample Project

Run pod install at Sample/ first.

❤️ Contribution

You are welcome to fork and submit pull requests.

🔖 License

EABlurView is open-sourced software, licensed under the MIT license.

🔫 Usage

import EABlurView

Example

Blur the whole

let blurView = DynamicBlurView(frame: view.bounds)
blurView.blurRadius = 10
view.addSubview(blurView)

Animation

UIView.animateWithDuration(0.5) {
    blurView.blurRadius = 30
}

Ratio

blurView.blurRatio = 0.5

Variable

var drawsAsynchronously: Bool
  • When true, it captures displays image and blur it asynchronously. Try to set true if needs more performance.

  • Asynchronous drawing is possibly crash when needs to process on main thread that drawing with animation for example.

  • Default is false.

var blurRadius: CGFloat
  • Strength of the blur.

var trackingMode: TrackingMode
  • Mode for update frequency.

  • Common is constantly updated.

  • Tracking is only during scrolling update.

  • None is not update.

var blendColor: UIColor?
  • Blend in the blurred image.

var iterations: Int
  • Number of times for blur.

  • Default is 3.

var isDeepRendering: Bool
  • If the view want to render beyond the layer, should be true.

  • Default is false.

var blurRatio: CGFloat
  • When none of tracking mode, it can change the radius of blur with the ratio. Should set from 0 to 1.

  • Default is 1.

var quality: CaptureQuality
  • Quality of captured image.

  • Default is medium.

Function

func refresh()
  • Remove cache of blur image then get it again.

func remove()
  • Remove cache of blur image.

func animate()
  • Should use when needs to change layout with animation when is set none of tracking mode.