roubachof / Sharpnado.MaterialFrame

A modern MAUI (and XF) Frame component supporting blur, acrylic, dark mode. Implemented with RealtimeBlurView on Android (custom blurview) and UIVisualEffectView on iOS.
MIT License
505 stars 29 forks source link

MaterialFrame with SVG shows white screen #5

Closed mauro-dasilva closed 4 years ago

mauro-dasilva commented 4 years ago

Platform (please complete the following information):

Describe the bug When you navigate to a page that has a SVG Image inside the MaterialFrame, the screen goes all white. However, when you navigate back and go back to that screen it shows correctly. This only happens if you have the MaterialThemeset to AcrylicBlur, all other themes seem to work correctly.

To Reproduce I have attached a sample project which replicates the issue, in addition to a clip showing the issue.

  1. Click on any of the list items on the main page
  2. It will navigate to the Details page for the item and an SVG image should be shown, however nothing is displayed
  3. Press the back button (You will see the image flash for a second)
  4. Click on the same item again to view its detail. This time page loads correctly and the image is shown

Screenshots (if applicable) See attached screen capture Issue

App1.zip

roubachof commented 4 years ago

Have you tried increasing the AndroidMaterialFrameRenderer.BlurProcessDelayMilliseconds property ? Maybe try something crazy like 1000 ms and if it works lower the value till finding a good value

mauro-dasilva commented 4 years ago

Just tried that out and even tried 10 seconds, but it is still having the same issue.

roubachof commented 4 years ago

found out that the BlurProcessingDelay had a bad semantic. This will be fixed in the next version. The issue is that the computation of the svg is super slow, so the blur algo is confused and messes the ui hierarchy. You will probably need to set the BlurProcessingDelay to 100ms to have a good result when the next version will be released.

mauro-dasilva commented 4 years ago

Perfect! Thanks very much for that.

mauro-dasilva commented 4 years ago

Another question, would that affect iOS as well?