From 0a340cf50214ce1a436c9b34339f3579c3264d31 Mon Sep 17 00:00:00 2001 From: tranhuongk Date: Wed, 12 Jun 2024 10:47:21 +0700 Subject: [PATCH] Fix Transparent background on iOS --- ios/Classes/MapboxMapController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Classes/MapboxMapController.swift b/ios/Classes/MapboxMapController.swift index 98705e89..918cece6 100644 --- a/ios/Classes/MapboxMapController.swift +++ b/ios/Classes/MapboxMapController.swift @@ -57,6 +57,7 @@ final class MapboxMapController: NSObject, FlutterPlatformView { .set(key: "com.mapbox.common.telemetry.internal.custom_user_agent_fragment", value: "FlutterPlugin/\(pluginVersion)") mapView = MapView(frame: frame, mapInitOptions: mapInitOptions) + mapView.isOpaque = false mapboxMap = mapView.mapboxMap self.registrar = registrar