You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all i want to thank you for the nice framework. But unfortunately it doesn't work properly on iOS 14. After I updated my device, the blur effect does not displayed anymore. The area is only displayed in grayscale.
Here are my functions:
func blurThemAll(){letblurView=MLWBluuurView()letnavBlur=MLWBluuurView()self.navigationController?.navigationBar.addSubviewWithoutAnimation(subview: navBlur)
blurView.colorTintAlpha =0
blurView.colorTint =.BLACK_141B2C
view.addSubviewWithoutAnimation(subview: blurView)UIView.animate(withDuration: 0.4){
navBlur.blurRadius =8
blurView.colorTintAlpha = 0.6
blurView.blurRadius =8}}func allBlurMustDie(){varblurView:MLWBluuurView?varnavBlur:MLWBluuurView?self.view.subviews.forEach{ view in
if view.isKind(of:MLWBluuurView.self){
blurView = view as?MLWBluuurView}}
navigationController?.navigationBar.subviews.forEach({ view in
if view.isKind(of:MLWBluuurView.self){
navBlur = view as?MLWBluuurView}})UIView.animate(withDuration: 0.4, animations:{
navBlur?.blurRadius =0
blurView?.colorTintAlpha =0
blurView?.blurRadius =0}){ _ in
blurView?.removeFromSuperview()
navBlur?.removeFromSuperview()}}
I hope you can help me with this issue quickly.
Many thanks
Mallenow
The text was updated successfully, but these errors were encountered:
While this seems quite comprehensive I wouldn't use it in production because of the extensive use of private APIs (For the same reason, I wouldn't use Bluuur today). Recently I found out quite an elegant way to set the blur radius using vanilla UIKit:
privateletanimator:UIViewPropertyAnimatoroverride init(frame:CGRect){letvisualEffectView=UIVisualEffectView(effect:nil)// must be nil
animator =UIViewPropertyAnimator(duration:1, curve:.linear, animations:{
visualEffectView.effect =UIBlurEffect(style:.regular)})...// set the needed radius with a percentage:
animator.fractionComplete = 0.5
Hello,
first of all i want to thank you for the nice framework. But unfortunately it doesn't work properly on iOS 14. After I updated my device, the blur effect does not displayed anymore. The area is only displayed in grayscale.
Here are my functions:
I hope you can help me with this issue quickly.
Many thanks
Mallenow
The text was updated successfully, but these errors were encountered: