Questions tagged [uiblureffect]

A UIBlurEffect object applies a blurring effect to the content layered behind a UIVisualEffectView. t. This tag should be tagged issues related with blur effects in iOS. It is available in iOS 8.0 and later .

A UIBlurEffect object applies a blurring effect to the content layered behind a UIVisualEffectView. Views added to the contentView of a UIVisualEffectView are not affected by the blur effect.

This a declared in Apple's UIkit framework.

Source : UIBlurEffect class reference

Related SO questions:

Related tags:

189 questions
93
votes
15 answers

How to fade a UIVisualEffectView and/or UIBlurEffect in and out?

I want to fade a UIVisualEffectsView with a UIBlurEffect in and out: var blurEffectView = UIVisualEffectView() blurEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .dark)) I use a normal animation within a function called by a UIButton…
LinusGeffarth
  • 21,607
  • 24
  • 100
  • 152
59
votes
13 answers

How to set the BlurRadius of UIBlurEffectStyle.Light

I was wondering how to set the radius/blur factor of iOS new UIBlurEffectStyle.Light? I could not find anything in the documentation. But I want it to look similar to the classic UIImage+ImageEffects.h blur effect. required init(coder aDecoder:…
fabian
  • 5,203
  • 10
  • 57
  • 89
41
votes
1 answer

How to implement Visual Effect Views in Interface Builder?

How do you use Visual Effect Views with Blur and Vibrancy in Interface Builder? I've dragged this item out into the View, then dragged a UILabel onto the last view in the hierarchy - the vibrant effect's contentView I assume. This results in a…
Jordan H
  • 45,794
  • 29
  • 162
  • 306
32
votes
11 answers

Less Blur with `Visual Effect View with Blur`?

Title pretty much asks it all... I'm playing with the iOS8 Visual Effect View with Blur. It's over a UIImageView that shows a user choosable background photo. The view placed in the contentView itself is my own custom view, shows a sort of…
Travis Griggs
  • 18,930
  • 17
  • 76
  • 137
29
votes
7 answers

Xcode warning: "This will cause the effect to appear broken until opacity returns to 1"

I have a prototype cell and I put a UIVisualEffectView inside its ContentView. Visual Effect View's Blur Style is Dark and Vibrancy is off. Then I set the alpha of the Visual Effect View to 0,5 using the IB. Then on runtime, I get a warning that…
aslisabanci
  • 8,360
  • 10
  • 56
  • 76
25
votes
1 answer

How to disable transparency for the project navigator?

I've updated to OSX Yosemite and see that one of the new "features" of Xcode is blur/transparency effect for the project navigator window. Below is an example of my wallpaper blurring through. I find this to be really fugly and distracting. Is there…
Alex Stone
  • 41,555
  • 51
  • 213
  • 379
14
votes
2 answers

Unity3D : Blur the background of a UI canvas

I'm trying to create a blur effect on the background of a UI window for my game in Unity3D. One of the best examples I can think of right now is Heroes Of The Storm, notice how the background of the Level Up panel blurs what's behind it : Is there…
pankee
  • 292
  • 1
  • 2
  • 12
13
votes
2 answers

Detect if device properly displays UIVisualEffectView?

My app utilizes UIVisualEffectView to blur the background just like Control Center. But I discovered the iPad 2 (and Retina iPad) which can run iOS 8 isn't powerful enough to display that effect so it reverts to a gray color. I would like to be able…
Jordan H
  • 45,794
  • 29
  • 162
  • 306
11
votes
3 answers

Presenting View Controller with Blur Effect

I'm presenting a View Controller modally with a blur background effect. iOS 10/XCode 8 introduced a problem with my animation. This is the presentation code: let modalVC = ModalViewController(nibName: "ModalViewController", bundle:…
Fdo
  • 983
  • 2
  • 14
  • 33
11
votes
2 answers

How to Blur effect apply on UIView in iOS?

In my application i want to apply blur effect on uiview.So how can i achive blur effect. I tried by below code: UIGraphicsBeginImageContext(scrollview.bounds.size); [scrollview.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage…
Monika Patel
  • 2,019
  • 3
  • 16
  • 41
9
votes
2 answers

tweak intensity of blur effect inside UIVisualEffectView in Swift

I'm using this code to create a blur effect inside my view: let blur = UIVisualEffectView(effect: UIBlurEffect(style: UIBlurEffectStyle.Light)) blur.frame = CGRectMake(180, 10, 200, 750) myView.addSubview(blur) is there any way to tweak the…
Claus
  • 5,027
  • 8
  • 67
  • 101
8
votes
5 answers

Create shadow around a UIVisualEffectView without covering the whole view

Is it possible to create a shadow around a UIVisualView with UIBlurEffect without letting the UIVisualView get coloured by the shadow underneath? I basically just want the shadow around the view but with this code the shadow will cover the whole…
alengqvist
  • 441
  • 5
  • 15
7
votes
2 answers

Remove BlurView in swift

I have a UIView that contains buttons and labels. When these buttons are pressed, this UIView will become blur using the code below. @IBOutlet weak var blurView: UIView! var blurEffect = UIBlurEffect(style: UIBlurEffectStyle.Dark) var…
Clarence
  • 1,931
  • 1
  • 32
  • 48
6
votes
3 answers

UIBlurEffect not working when trying to take screenshot programically in swift

I've blurred my view programmatically and added a share extension with screenshot but the screenshot doesn't blur my view in the image. All programming in swift Code for blurring let blurEffect = UIBlurEffect(style:.Dark) let blurView =…
Palash Sharma
  • 602
  • 1
  • 8
  • 16
6
votes
1 answer

Change blur effect style on-the-fly

Is it any way to change blur effect style on-the-fly after creating view? E.g. i've created in Storyboard blur view, but i need to change effect style from .Light to .Dark programmatically. I can't just re-create view, because I have information in…
Vasily
  • 3,499
  • 3
  • 24
  • 56
1
2 3
12 13