Need help with CFIFrostedOverlayView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

CodaFi
207 Stars 24 Forks MIT License 17 Commits 4 Opened issues

Description

[Broken] A view that renders its superview with a gaussian blur.

Services available

!
?

Need anything else?

Contributors list

# 12,849
Swift
C++
Shell
propert...
17 commits

CFIFrostedOverlayView

A view that renders its superview with a gaussian blur like iOS 7's Control Center

Frosted Overlay Screenshot

Caveats

Because of the way that this control renders its superview, you must provide it an offset if you choose to not have the control take up the entirety of its superview, and guarantee that it is not onscreen when its superview is being rendered. For example, the demo project shows how to offset the control by 20 pixels from the top of the screen.

  self.controlCenter = //...
    self.controlCenter.offset = 20.f;
    [self.view addSubview:self.controlCenter];
    self.controlCenter.viewToBlur = self.view;

The inset of the control's frame and its

contentOffset
must match exactly, else the rendered view will be mis-aligned with the actual view.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.