How to add a blurred view ontop of a view?

后端 未结 4 1256
灰色年华
灰色年华 2021-01-30 09:54

I have an NSTableView that gets reloaded. While new data is loading, I want to add a subview ontop of it with a spinner. I would like the view ontop to be semi-transparent and r

4条回答
  •  醉酒成梦
    2021-01-30 10:23

    You should check out RMBlurredView on guthub: https://github.com/raffael/RMBlurredView

    It's an easy to use subclass of NSView that does all that for you. Be sure to set setWantsLayer:YES on your parent view!

    For details, check out Cocoanetics article: http://www.cocoanetics.com/2013/10/blurring-views-on-mac/

提交回复
热议问题