[0:00]Hello, everyone. My name is Matt, and I'm a product manager at Google, working on the Google Maps platform. I'm excited to share with you today how Google Maps platform and SwiftUI can help you build beautiful, powerful location experiences for your iOS users. SwiftUI is Apple's declarative UI framework, making it easier than ever to build great apps across all Apple platforms. And the Google Maps platform helps you bring the real world to your users with dynamic maps, routes, places, and more. Combining these two powerful frameworks, you can build delightful experiences for your users with less code. Before we dive into the new capabilities we're announcing today, let's take a quick look at the history of Google Maps platform on iOS. It all started in 2012 when we launched the Google Maps SDK for iOS, bringing Google Maps directly into your mobile apps. In 2015, we launched the Google Places SDK for iOS, giving you access to rich location data about places around the world. And in 2018, we launched the Google Maps platform, consolidating all of our mapping products into a single platform for developers. Throughout the years, we've continued to invest in our iOS SDKs, adding new features and improving performance, helping you build better and better experiences. Today, we're taking another big step forward. We're excited to announce the beta release of our new Google Maps platform SDK for iOS, optimized for SwiftUI. This new SDK combines the power of Google Maps platform with the simplicity of SwiftUI, making it easier than ever to add maps to your iOS apps. It includes a new SwiftUI map view, which is a drop-in replacement for the existing GMS map view, and a new SwiftUI compatible markers API. This new SDK is built on top of our existing Google Maps SDK for iOS, so you can continue to use all the features you're familiar with. And it's fully compatible with existing projects, so you can adopt it at your own pace. With that, let's dive into some code examples. Adding a map to your SwiftUI app is now as simple as adding a map view to your view hierarchy. You can customize the map's initial position and zoom level using the camera property. And you can add markers to the map using the new markers API. The new markers API is fully compatible with SwiftUI, so you can use it with SwiftUI views and modifiers. For example, you can use a forEach loop to add multiple markers to the map from a collection of data. And you can customize the appearance of each marker using SwiftUI views. For example, you can use an image view to display a custom icon for each marker. Or you can use a text view to display a label for each marker. You can also combine these to create rich, custom markers that display both an image and text. The new markers API also supports declarative event handling, so you can respond to user interactions with markers using SwiftUI gestures. For example, you can add an onTapGesture to a marker to display an info window when the user taps on it. The new Google Maps platform SDK for iOS optimized for SwiftUI is available today in beta. You can find more information and get started with the new SDK on our developer website. We're excited to see what you build with it. Thank you.
Transcript source
YouTube auto captions
This transcript was extracted from YouTube's auto-generated caption track. The transcript below is server-rendered so it can be read, searched, cited, and shared without opening the original YouTube player.
Pull quotes
[0:00]My name is Matt, and I'm a product manager at Google, working on the Google Maps platform.
[0:00]I'm excited to share with you today how Google Maps platform and SwiftUI can help you build beautiful, powerful location experiences for your iOS users.
[0:00]SwiftUI is Apple's declarative UI framework, making it easier than ever to build great apps across all Apple platforms.
[0:00]And the Google Maps platform helps you bring the real world to your users with dynamic maps, routes, places, and more.
Use this transcript
Related transcript hubs
Watch on YouTube
Share
MORE TRANSCRIPTS



