Latest0.0.1
Homepagehttps://github.com/raffael/RMBlurredView
LicenseBSD
Platformsosx 10.8, requires ARC
FrameworksQuartzCore, Cocoa
Authors

This subclass of NSView can be used to get an iOS 7 like blurred background to mimic a frosted glass effect — on OS X! Check out the corresponding article on Cocoanetics.

NOTE: The parent view of the RMBlurredView must be layer-backed to see the effect.

RMBlurredView, a NSView with blurred background

(Chat Heads with blurred title and bottom bar)

The view can be easily customized to your needs:

  • blurRadius (float) A float indicating the strength of the blur effect. This will be directly passed as input parameter for the Gaussian blur CIFilter. Default: 20.0.

  • saturationFactor (float) A float value indicating the strength of the increased saturation effect. The Control Center for example uses increased saturated colors to get more vibrant colors shining through the view. Default: 2.0.

  • tintColor (NSColor) A NSColor used a the background color for the view. Default: 70% White.

NOTE: Can be used with RMSecondaryScroller to get a customizable NSScroller for NSScrollViews.

Usage

Usage should be clear once you see the annotated header file. Check out the RMBlurredViewExample project.

Contact

License

Copyright (c) 2013 Raffael Hannemann
Under BSD License.

Want more?

Follow @raffael_me for similar releases.

Latest podspec

{
    "name": "RMBlurredView",
    "version": "0.0.1",
    "summary": "This subclass of NSView can be used to get an iOS 7 like blurred background to mimic a frosted glass effect u2014 on OS X!",
    "homepage": "https://github.com/raffael/RMBlurredView",
    "screenshots": "https://github-camo.global.ssl.fastly.net/d90aaeef78618a42c0998a24514f3dfa5ab7e07a/687474703a2f2f7777772e636f636f616e65746963732e636f6d2f66696c65732f436861742d48656164732d507265766965772e6a7067",
    "license": {
        "type": "BSD",
        "file": "LICENSE"
    },
    "authors": {
        "Raffael H.": "[email protected]"
    },
    "platforms": {
        "osx": "10.8"
    },
    "source": {
        "git": "https://github.com/raffael/RMBlurredView.git",
        "commit": "3775c980a98dfa19bd8f49f88c37faa63868743f"
    },
    "source_files": "*.{h,m}",
    "public_header_files": "*.h",
    "frameworks": [
        "QuartzCore",
        "Cocoa"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This