From ca45a01bdb2b99ec944afea4e6868932e42ba4cb Mon Sep 17 00:00:00 2001 From: Tafel <35837839+tafelnl@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:04:54 +0200 Subject: [PATCH] fix: ensure webview becomes tranparent (#239) Backport #238 to v5 --- ios/Plugin/Plugin.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/Plugin/Plugin.swift b/ios/Plugin/Plugin.swift index 13048304..b19c6611 100644 --- a/ios/Plugin/Plugin.swift +++ b/ios/Plugin/Plugin.swift @@ -73,6 +73,10 @@ public class CapacitorGoogleMaps: CustomMapViewEvents { customMapView.GMapView.delegate = customMapView; self.customWebView?.customMapViews[customMapView.id] = customMapView + + DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { + self.setupWebView() + } } }