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

Add blur to BackgroundTypeStyle please #127

Open
Salarsoleimani opened this issue May 1, 2020 · 1 comment
Open

Add blur to BackgroundTypeStyle please #127

Salarsoleimani opened this issue May 1, 2020 · 1 comment

Comments

@Salarsoleimani
Copy link

I tried to add a blur case in BackgroundTypeStyle. then in addBackground() method added:

case .blur:
  backgroundView = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width,height: UIScreen.main.bounds.height))
  let blurEffect = UIBlurEffect(style: UIBlurEffect.Style.dark)
  let blurEffectView = UIVisualEffectView(effect: blurEffect)
  blurEffectView.frame = backgroundView.bounds
  blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
  backgroundView.addSubview(blurEffectView)
}

but nothing changed. could you please add blur effect in your code for furthur use.

Thanks

@Salarsoleimani
Copy link
Author

Is anybody here? :)

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

1 participant