Open maximkrouk opened 4 years ago
Here are workarounds I found, but none of them can be applied to VisualEffectBlur
directly:
Default behaviour:
Insert non-blurring NSVisualEffectView (with .headerView
material for example) under the blurred one. But it should cover all the background or you'll get the second picture.
Play with opacity and different non-blurring materials (it may be hard to notice, but they actually blur the background if their opacity is low and corner radius works fine too). But blurred materials will start to render with no corners masked 😢 as U can see at the second pic.
Use separate windows (here you can find some great examples of window styles)
I tried to play with layer, corner & image masks, clipsToBounds property, container views, but couldn't find a way to achieve the desired behavior. Maybe together we can find how to make it work 🙂
Upd: everything works fine in default windows, but blur-in-blur doesn't work.