How to adjust the blur level of a UIVisualEffectView

I am trying to make a UIVisualEffectView to make a nice blur effect in my view. But I think that UIVisualEffectView generates a very strong blur.

I am trying to adjust the blur level in a UIVisualEffectView, I want a slight blur.

Do you know how to do this?

+5
source share
2 answers

You can also use the UIImage + ImageEffects.h category from WWDC 2013. This has more things to customize.

eg. from https://github.com/ParsePlatform/Anypic/tree/master/Anypic-iOS/Vendor/UIImageEffects

+2
source

You cannot do this with a UIVisualEffectView - the only blur options are:

 enum UIBlurEffectStyle : Int { case ExtraLight case Light case Dark } 

There is no property on UIBlurEffect , UIVisualEffect or UIVisualEffectView for the "magnitude" of the blur.

This blog post is a good place to start if you want to β€œexpand your own” blurry view with a custom value.

+5
source

Source: https://habr.com/ru/post/1203893/


All Articles