Questions tagged [uivisualeffectview]

A UIVisualEffectView object gives you an easy way implement some complex visual effects. A question related with visual effect for UIView can be tagged with [tag:UIVisualEffectView].It is Available in iOS 8.0 and later .

Related to the new UIVisualEffectView.

A UIVisualEffectView object gives you an easy way implement some complex visual effects. Depending on the desired effect, the effect may affect content layered behind the view or content added to the visual effect view’s contentView.

https://developer.apple.com/library/ios/documentation/uikit/reference/UIVisualEffectView/index.html

217 questions
213
votes
6 answers

How to use UIVisualEffectView to Blur Image?

Could someone give a small example of applying the blur to an image? I've been trying to figure out the code for a while now :( still new at obj c! The UIVisualEffectView provides a simple abstraction over complex visual effects. Depending on…
cNoob
  • 2,133
  • 3
  • 13
  • 4
94
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
  • 27,197
  • 29
  • 120
  • 174
44
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
  • 52,571
  • 37
  • 201
  • 351
38
votes
4 answers

Corner radius on UIVisualEffectView

Hi Im wondering if It's possible to set a corner radius on a UIVisualEffectView? Here's the code that i've tried: @IBOutlet var blurView: UIVisualEffectView! var blurLayer : CALayer{ return blurView.layer } override func viewDidLoad() { …
Johan Enstam
  • 427
  • 2
  • 5
  • 9
34
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
  • 21,522
  • 19
  • 91
  • 167
31
votes
3 answers

UIVisualEffectView in iOS 10

I am presenting a UIViewController that contains a UIVisualEffectView as follows: -(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { [self performSegueWithIdentifier:@"segueBlur"…
Axort
  • 2,034
  • 2
  • 23
  • 24
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…
aslı
  • 8,740
  • 10
  • 59
  • 80
21
votes
9 answers

Fix UIVisualEffectView extra light blur being gray on white background

Apple provides this live blurring view class UIVisualEffectView and you use it with a UIBlurEffect which takes one of three available UIBlurEffectStyles: enum UIBlurEffectStyle : Int { case ExtraLight case Light case Dark } Now for demo…
Finn Gaida
  • 4,000
  • 4
  • 20
  • 30
17
votes
2 answers

UIVisualEffectView with mask layer

I am trying to blur a MKMapView while also displaying a circle mask above it. To better visualize what I mean with this you can find an image of my current state attached: This shows nearly what I want but the background (the map) should be blurred…
dehlen
  • 7,325
  • 4
  • 43
  • 71
17
votes
6 answers

Round UIVisualEffectView

I have a map. On the map, I'd like to draw small, blurred circle. I've implemented something like this: UIVisualEffect *visualEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; self.visualEffectView = [[UIVisualEffectView alloc]…
Nat
  • 12,032
  • 9
  • 56
  • 103
13
votes
1 answer

Animating UIVisualEffectView Blur Radius?

As the title says it, is there a way to animate a UIVisualEffectView's blur radius? I have a dynamic background behind the view so the ImageEffects addition can't be used... The only thing that can do this as far as I know is to animate the opacity…
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
  • 52,571
  • 37
  • 201
  • 351
12
votes
2 answers

Creating a transparent hole on UIVisualEffect view

I'm trying to create a transparent hole kind of view on the UIVisualEffectView. I was following the solution given here. I have attached my sample code which I worked on here. I'm trying to create a transparent view whose frame is taken from the…
Siddharthan Asokan
  • 4,321
  • 11
  • 44
  • 80
10
votes
2 answers

Eliminating a distinctive blur edge between UINavigationBar and UIVisualEffectView

Currently, my view hierarchy consists of a UIViewController (NOT UITableViewController), a UITableView nested in the view controller and a UIVisualEffectView (set to Extra Light) in front of the UITableView, aligned to the bottom of a…
Pan Ziyue
  • 2,287
  • 2
  • 16
  • 17
10
votes
1 answer

UIVisualEffectView blur constraint animation bug

I'm having an issue expanding and contracting a UIEffectView. Its expands fine, but when it contracts it instantly snaps to its final height and slides into position, leaving behind a faint vibrancy effect in its wake. Heres a gif to illustrate…
Travis Beck
  • 1,128
  • 9
  • 21
1
2 3
14 15