Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is not working in iOS 14 #25

Open
MehmetDenizYalcin opened this issue Sep 18, 2020 · 8 comments
Open

is not working in iOS 14 #25

MehmetDenizYalcin opened this issue Sep 18, 2020 · 8 comments

Comments

@MehmetDenizYalcin
Copy link

MehmetDenizYalcin commented Sep 18, 2020

it is working if you add this

func setValue( value: T, forKey key: Key) {
blurEffect.setValue(value, forKeyPath: key.rawValue)
if #available(iOS 14, *) { } else {
self.effect = blurEffect
}
}

@shkipan
Copy link

shkipan commented Sep 20, 2020

Could you be more specific? I have the same issue, recompiling project in IOS14. The blur on view is missing, _UIVisualEffectBackdropView doesn't react on changes, applied to it

@bachvanthe1994
Copy link

I have the same issue,
But in my app, the blur has shown a black-white view.
You can see image above
image

@MehmetDenizYalcin
Copy link
Author

MehmetDenizYalcin commented Sep 21, 2020

@bachvanthe1994 yes if you add latest changes and change below code like this it will work

func setValue( value: T, forKey key: Key) {
blurEffect.setValue(value, forKeyPath: key.rawValue)
if #available(iOS 14, *) { } else {
self.effect = blurEffect
}
}

@shkipan self.effect = blurEffect remove _UIVisualEffectSubview and you see black and white in iOS 14

@shkipan
Copy link

shkipan commented Sep 21, 2020

@MehmetDenizYalcin, solved, adding UIBlurEffect and removing last subview from subviews helped

@bachvanthe1994
Copy link

@bachvanthe1994 yes if you add latest changes and change below code like this it will work

func setValue( value: T, forKey key: Key) {
blurEffect.setValue(value, forKeyPath: key.rawValue)
if #available(iOS 14, *) { } else {
self.effect = blurEffect
}
}

@shkipan self.effect = blurEffect remove _UIVisualEffectSubview and you see black and white in iOS 14

Thank bro, that worked. But I hope the owner of the respository will commit a new release. I don't want to change the source in pod folder because it is not stability

@nadimalam
Copy link

Hey guys, was wondering if any of you could potentially help me please as ive been stuck on this issue for a while.

I cant seem the blur effect to work on iOS14 devices, it works fine on iOS13 though.

    let blurEffect = (NSClassFromString("_UICustomBlurEffect") as! UIBlurEffect.Type).init()
    blurEffect.setValue(8, forKeyPath: "blurRadius")
    blurView = UIVisualEffectView(effect: blurEffect)
    blurView.frame = UIScreen.main.bounds
    blurView.alpha = 1
    view.insertSubview(blurView, aboveSubview: imvBackground)

Is anyone please able to help me fix this? Thanks.

@MehmetDenizYalcin
Copy link
Author

Hey guys, was wondering if any of you could potentially help me please as ive been stuck on this issue for a while.

I cant seem the blur effect to work on iOS14 devices, it works fine on iOS13 though.

    let blurEffect = (NSClassFromString("_UICustomBlurEffect") as! UIBlurEffect.Type).init()
    blurEffect.setValue(8, forKeyPath: "blurRadius")
    blurView = UIVisualEffectView(effect: blurEffect)
    blurView.frame = UIScreen.main.bounds
    blurView.alpha = 1
    view.insertSubview(blurView, aboveSubview: imvBackground)

Is anyone please able to help me fix this? Thanks.

Check my comment, it is the first one.

@nadimalam
Copy link

nadimalam commented Oct 1, 2020

Hey guys, was wondering if any of you could potentially help me please as ive been stuck on this issue for a while.
I cant seem the blur effect to work on iOS14 devices, it works fine on iOS13 though.

    let blurEffect = (NSClassFromString("_UICustomBlurEffect") as! UIBlurEffect.Type).init()
    blurEffect.setValue(8, forKeyPath: "blurRadius")
    blurView = UIVisualEffectView(effect: blurEffect)
    blurView.frame = UIScreen.main.bounds
    blurView.alpha = 1
    view.insertSubview(blurView, aboveSubview: imvBackground)

Is anyone please able to help me fix this? Thanks.

Check my comment, it is the first one.

Oh right, thank you, but please can you tell me where to add this setValue function?

UPDATE: I Should have mentioned that im not using this VisualEffectView Pod Library, instead im using just the default apple implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants