From 0b28a38be7565af663248c04ddec92f1f7b0cca7 Mon Sep 17 00:00:00 2001 From: Joonas Kerttula Date: Fri, 9 Feb 2024 12:21:12 +0200 Subject: [PATCH] chore: Enable metal renderer for the iOS example app --- README.md | 6 ++++++ example/ios/Runner/AppDelegate.swift | 1 + 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 8152166..0b6acbd 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,12 @@ import GoogleNavigation } ``` +> [!NOTE] +> Above code snipped also enables Metal rendering for Google Maps SDK. If you are not using Metal rendering, you can remove the following line: +> ```swift +> GMSServices.setMetalRendererEnabled(true) +> ``` + ## Usage You can now add a `GoogleMapsNavigationView` widget to your widget tree. diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift index 61079a6..a8e1cb3 100644 --- a/example/ios/Runner/AppDelegate.swift +++ b/example/ios/Runner/AppDelegate.swift @@ -31,6 +31,7 @@ import GoogleNavigation mapsApiKey = "YOUR_API_KEY" } GMSServices.provideAPIKey(mapsApiKey) + GMSServices.setMetalRendererEnabled(true) GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) }