• Stars
    star
    967
  • Rank 47,309 (Top 1.0 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 9 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DynamicBlurView is a dynamic and high performance UIView subclass for Blur.

DynamicBlurView

Carthage compatible Version License Platform

DynamicBlurView is a dynamic and high performance UIView subclass for Blur.

Appetize's Demo

homehome

  • Since using the CADisplayLink, it is a high performance.
  • Can generate a plurality of BlurView.

Requirements

  • Swift 5
  • iOS 8.0 or later
  • tvOS 9.0 or later

How to Install DynamicBlurView

CocoaPods

Add the following to your Podfile:

pod "DynamicBlurView"

Carthage

Add the following to your Cartfile:

github "KyoheiG3/DynamicBlurView"

Usage

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 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.

Acknowledgements

Author

Kyohei Ito

Follow me 🎉

LICENSE

Under the MIT license. See LICENSE file for details.

More Repositories

1

GridView

Reusable GridView with excellent performance and customization that can be time table, spreadsheet, paging and more.
Swift
855
star
2

TableViewDragger

A cells of UITableView can be rearranged by drag and drop.
Swift
536
star
3

AttributedLabel

Easy to use, fast, and higher performance than UILabel.
Swift
524
star
4

SimpleAlert

Customizable simple Alert and simple ActionSheet for Swift
Swift
398
star
5

PagingView

Infinite paging, Smart auto layout, Interface of similar to UIKit.
Swift
316
star
6

SpringIndicator

SpringIndicator is indicator and PullToRefresh. Inspired by Material design components.
Swift
272
star
7

Keynode

Interactive Keyboard Controller for Swift
Swift
77
star
8

NavigationNotice

Customizable and interactive animated notification UI control.
Swift
75
star
9

ProtobufExample

Example of requesting Protocol Buffers and JSON with Swift. API is Swift or Go.
Swift
67
star
10

Plan

The Plan.framework helps to keep your iOS application design clean.
Swift
36
star
11

RxDisplayLink

RxDisplayLink reactive wrapper for CADisplayLink
Swift
29
star
12

smooth_counter

Dart
24
star
13

Exclusion

Customizable URLCache.
Swift
19
star
14

MountainView

The animation curve looks like Mountain View.
Swift
14
star
15

G3JSON

Objective-C
11
star
16

gRPCExample

Swift
11
star
17

XcodeGenSample

Swift
9
star
18

InfiniteView

Swift
4
star
19

lcov_excluder

It is possible to exclude coverage by editing the contents of the lcov.info file.
Dart
3
star
20

grain

Module management library like requirejs.
JavaScript
2
star
21

CollectionViewGridLayout

How to use grid layout in UICollectionView.
Swift
2
star
22

assets

1
star