nicklockwood / FXBlurView

[DEPRECATED]
Other
4.94k stars 713 forks source link

adding corner radius and drop shadow #93

Open haashem opened 9 years ago

haashem commented 9 years ago

I have a class inherited from FXBlurView. I tried but it seems impossible because when I set clipsToBounds = NO corner radius will ignored!

what to do?

mortenholmgaard commented 9 years ago

Have you tried masksToBounds = true - that works for me

haashem commented 9 years ago

if I set masksToBounds= YES then corner radius will be ignored. would you send a shot?

mortenholmgaard commented 9 years ago

I do not set clipsToBounds - it just has the default value. This is my configuration if it helps you:

    blurView.underlyingView = self.view
    blurView.tintColor = nil
    blurView.blurRadius = 10
    blurView.layer.masksToBounds = true
    blurView.layer.cornerRadius = 25
    blurView.dynamic = false