Project: titanium
Issue TIMOB-20176: iOS: Support UIVisualEffectView (aka Blur View)
We should support the {{UIVisualBlurEffectView}} aka Blur View introduced in iOS 8 as a public API (instead of unrecommended solution of stretching a toolbar). Demo architecture: {code:javascript} var win = Ti.UI.createWindow({ backgroundColor: "#fff" }); /* *	Reference Image */ var img = Ti.UI.createImageView({ image: "/default_app_logo.png", top: 100, width: 300, height: 300 }); /* *	Blur View */ var blur = Ti.UI.iOS.createBlurView({ width: Ti.UI.FILL, height: Ti.UI.FILL }); img.add(blur); /* *	Effect Controls */ var tabs = Ti.UI.iOS.createTabbedBar({ labels: ["Extra light", "Light", "Dark"], bottom: 100 }); var effects = [ Ti.UI.iOS.BLUR_EFFECT_STYLE_EXTRA_LIGHT, Ti.UI.iOS.BLUR_EFFECT_STYLE_LIGHT, Ti.UI.iOS.BLUR_EFFECT_STYLE_DARK, ]; tabs.addEventListener("click", function(e) { blur.setEffect(effects[e.index]); }); win.add(tabs); win.add(img); win.open(); {code}
Story points: 13