Skip to content

Commit

Permalink
chore: Enable metal renderer for the iOS example app
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Feb 9, 2024
1 parent 1aa99fc commit 0b28a38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0b28a38

Please sign in to comment.