All Projects β†’ efremidze β†’ Visualeffectview

efremidze / Visualeffectview

Licence: mit
Dynamic blur background view with tint color (UIVisualEffectView subclass) πŸ“±

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Visualeffectview

RainbowTaskbar
Customizable Windows taskbar effects.
Stars: ✭ 39 (-95.09%)
Mutual labels:  effects, blur
Swiftuiimageeffects
Swift port of Apple UIImage+UIImageEffecs category.
Stars: ✭ 213 (-73.21%)
Mutual labels:  effects, blur
ECardFlow
🍭A custom ViewPager for multiple card flow system. && A layout which provide beautiful background effects for ViewPager.
Stars: ✭ 47 (-94.09%)
Mutual labels:  effects, blur
Glasscord
[BUGFIXES ONLY, SUPPORT WILL DROP MAR 1, 2021] Injecting composition effects into Electron applications!
Stars: ✭ 737 (-7.3%)
Mutual labels:  effects, blur
Super Blur
Screen and UI gaussian blur for Unity
Stars: ✭ 543 (-31.7%)
Mutual labels:  effects, blur
Blurify
blurify.js is a tiny(~2kb) library to blurred pictures, support graceful downgrade from `css` mode to `canvas` mode.
Stars: ✭ 665 (-16.35%)
Mutual labels:  blur
Sonoff Homekit
Make your Sonoff Switch compatible with Apple Homekit! πŸŽ‰
Stars: ✭ 722 (-9.18%)
Mutual labels:  apple
Brisk
A macOS app for submitting radars
Stars: ✭ 659 (-17.11%)
Mutual labels:  apple
About Swiftui
Gathering all info published, both by Apple and by others, about new framework SwiftUI.
Stars: ✭ 5,954 (+648.93%)
Mutual labels:  apple
Dynamicblurview
DynamicBlurView is a dynamic and high performance UIView subclass for Blur.
Stars: ✭ 792 (-0.38%)
Mutual labels:  blur
Etsyblur
EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the Etsy app.
Stars: ✭ 739 (-7.04%)
Mutual labels:  blur
Shiny
Iridescent Effect View (inspired by Apple Pay Cash) ✨
Stars: ✭ 707 (-11.07%)
Mutual labels:  apple
Forceblur
ForceBlur Animation for iOS Messaging Apps
Stars: ✭ 666 (-16.23%)
Mutual labels:  blur
Rome
Carthage cache for S3, Minio, Ceph, Google Storage, Artifactory and many others
Stars: ✭ 724 (-8.93%)
Mutual labels:  apple
Textfieldeffects
Custom UITextFields effects inspired by Codrops, built using Swift
Stars: ✭ 5,708 (+617.99%)
Mutual labels:  effects
Biometricauthentication
Use Apple FaceID or TouchID authentication in your app using BiometricAuthentication.
Stars: ✭ 746 (-6.16%)
Mutual labels:  apple
Awesome Swift Korean Lecture
ν›Œλ₯­ν•œ Swift μ„Έμ…˜ λ™μ˜μƒ(κ°•μ’Œ), ν•œκΈ€ μžλ§‰μžˆλŠ” ν˜Ήμ€ ν•œκ΅­μ–΄ κ°•μ˜ 정보 링크 λͺ¨μŒ (Awesome Swift Korean lecture information)
Stars: ✭ 649 (-18.36%)
Mutual labels:  apple
Teaching App Dev Swift
DEPRECATED. Instructor lesson plans that accompany Xcode projects, for guiding in-class experiential learning.
Stars: ✭ 699 (-12.08%)
Mutual labels:  apple
Open Source Ios Apps
πŸ“± Collaborative List of Open-Source iOS Apps
Stars: ✭ 28,826 (+3525.91%)
Mutual labels:  apple
Juice
Make your battery information a bit more interesting.
Stars: ✭ 688 (-13.46%)
Mutual labels:  apple

VisualEffectView

Build Status Carthage compatible Language Version License

VisualEffectView is a blur effect library with tint color support. This library uses the UIVisualEffectView to generate the blur.

Demo GIF

Demo Video

$ pod try VisualEffectView

Requirements

  • iOS 9.0+
  • Xcode 9.0+
  • Swift 5 (VisualEffectView 4.x), Swift 4 (VisualEffectView 3.x), Swift 3 (VisualEffectView 2.x), Swift 2 (VisualEffectView 1.x)

Usage

Add an instance of VisualEffectView to your view.

import VisualEffectView

let visualEffectView = VisualEffectView(frame: CGRect(x: 0, y: 0, width: 320, height: 480))

// Configure the view with tint color, blur radius, etc
visualEffectView.colorTint = .redColor()
visualEffectView.colorTintAlpha = 0.2
visualEffectView.blurRadius = 10
visualEffectView.scale = 1

addSubview(visualEffectView)

Depending on the desired effect, the effect may affect content layered behind the view or content added to the visual effect view’s contentView. After you add the visual effect view to the view hierarchy, add any subviews to the contentView property of the visual effect view. Do not add subviews directly to the visual effect view itself. Refer to the UIVisualEffectView for more info.

For more examples, take a look at the example project.

Customization

var colorTint: UIColor // tint color. default is nil
var colorTintAlpha: CGFloat // tint color alpha. default is 0
var blurRadius: CGFloat // blur radius. default is 0
var scale: CGFloat // scale factor. default is 1

If you want colorTintAlpha to be different from 0, make sure you always set it right after setting the colorTint or it may not be applied as expected. You also have to make sure you don't set colorTintAlpha if colorTint is nil.

Storyboard Support

Works great with storyboards and xibs.

Installation

CocoaPods

To install with CocoaPods, simply add this in your Podfile:

use_frameworks!
pod "VisualEffectView"

Carthage

To install with Carthage, simply add this in your Cartfile:

github "efremidze/VisualEffectView"

Manually

  1. Download and drop VisualEffectView.swift in your project.
  2. Congratulations!

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Disclaimer

VisualEffectView utilizes a private UIKit API to do its magic. Use caution, submitting this code to the App Store adds the risk of being rejected!

Credits

https://github.com/collinhundley/APCustomBlurView

License

VisualEffectView is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].