Closed e271828- closed 2 years ago
In progress
I think I have reproduced the issue, but I'm not 100% sure
Here is what I did:
UIVisualEffectView
for blur effectDebug View Hierarchy
The WebView looks gray
@e271828- can we somehow confirm that this is the issue which client observe? Maybe we can ask for some screenshots?
I have found that issue happens if we are trying to add WKWebView
to subview of UIVisualEffectView
or its child (red rectangle on the screenshot below)
As workaround we may use parent view of UIVisualEffectView
, the green rectangle on the screenshot below
`
P.S. Still researching the root of the issue, and workaround to allow placing WKWebView
on top of UIVisualEffectView
Update
After you add the visual effect view to the view hierarchy, add any subviews to the contentView property of the visual effect view. Do not add subviews directly to the visual effect view itself.
Also, the same issue described on SO https://stackoverflow.com/questions/46355872/warning-from-ios-do-not-add-subviews-directly-to-the-visual-effect-view-itself
So instead passing visualEffectView
(instance of UIVisualEffectView
), pass visualEffectView.contentView
Report: when adding the hCaptcha WkWebview to a container with a blur background the Webview is not loading sometimes.
Snippet: