Skip to content

Instantly share code, notes, and snippets.

@steventroughtonsmith
Created September 30, 2013 12:39
Show Gist options
  • Save steventroughtonsmith/6763213 to your computer and use it in GitHub Desktop.
Save steventroughtonsmith/6763213 to your computer and use it in GitHub Desktop.
Non-opaque application windows in iOS 7, with optional blur. Shows the user's wallpaper under the app, with Parallax if supported.
typedef enum _UIBackgroundStyle {
UIBackgroundStyleDefault,
UIBackgroundStyleTransparent,
UIBackgroundStyleLightBlur,
UIBackgroundStyleDarkBlur,
UIBackgroundStyleDarkTranslucent
} UIBackgroundStyle;
@interface UIApplication (UIBackgroundStyle)
-(void)_setBackgroundStyle:(UIBackgroundStyle)style;
@end
[application _setBackgroundStyle:UIBackgroundStyleDarkBlur];
@AppleBetas
Copy link

In addition to what @ThePantsThief suggested, there are a few enum values that are actually left out that can make really nice blurs: https://gist.github.com/AppleBetas/4ddf91c8ead4b2a87a71bcd52eab258b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment