Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5642] BlurView not working on Titanium SDK 7.0.2 and 7.1.0 RC

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNot Our Bug
Resolution Date2018-03-05T18:31:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labels7.0.2, 7.1.0RC, BlurView
ReporterFran Rodas
AssigneeShak Hossain
Created2018-03-05T13:16:03.000+0000
Updated2018-03-05T20:48:12.000+0000

Description

The simple example not working It shows a gray view.
// Reference image (or view)
var img = Ti.UI.createImageView({
    image: "images/cielo.jpg",
    top: 0,
    left : 0,
    width: 200,
    height: 200
});

// Blur view
var blur = Ti.UI.iOS.createBlurView({
    width: Ti.UI.FILL,
    height: Ti.UI.FILL,
    effect : Ti.UI.iOS.BLUR_EFFECT_STYLE_EXTRA_LIGHT
});

img.add(blur);

$.loginWindow.add(img);

Attachments

FileDateSize
Captura de pantalla 2018-03-05 a las 16.24.02.png2018-03-05T17:20:44.000+0000153447
Captura de pantalla 2018-03-05 a las 17.18.37.png2018-03-05T20:46:44.000+0000236658
testing.zip2018-03-05T16:15:11.000+00009373037

Comments

  1. Rene Pot 2018-03-05

    Tested locally on 7.1.0.RC. It works fine without the backgroundColor. Not sure what added value a backgroundColor on blurview has.
  2. Fran Rodas 2018-03-05

    Doesn´t works for me. Removing the backgroundColor...
  3. Fran Rodas 2018-03-05

    [^testing.zip] Adding a blank project...
  4. Rene Pot 2018-03-05

    I added a screenshot [~frodfigu] sent to me. I wasn't able to reproduce with his code. [~frodfigu] please update the ticket with your versions, Alloy/Mac/Appc CLI etc
  5. Hans Knöchel 2018-03-05

    The blur-view is working as expected. Please note that the blur-radius (I think it's 45px natively) will make the image look different than before, just like the screenshot. Also note that you usually add the image to the blur-view, not the blur view to the image. See the [kitchensink example](https://github.com/appcelerator/kitchensink-v2/blob/master/app/views/controls/views/blurview.xml) for details. Resolving as this is not an SDK issue.
  6. Fran Rodas 2018-03-05

    Solved! Was the iOS simulator setting. !Captura de pantalla 2018-03-05 a las 17.18.37.png|thumbnail! I dont´ touch this option, and I don´t know how it auto-changed. Thank you very much for your support.

JSON Source