Places Swift SDK for iOS(预览版)
Places Swift SDK for iOS(预览版)提供以 Swift 为先的 Places SDK for iOS SDK 版本。Places Swift SDK for iOS(预览版)提供用户熟悉的 Places SDK for iOS 的所有功能,并因直接在 Swift 中实现而获得许多额外优势。这些优势充分利用了 Swift 的独特特性,有助于编写更符合 Swift 惯例的代码。
iOS 版 Places Swift SDK(预览版)的主要功能包括:
目前,Places Swift SDK for iOS(预览版)仅适用于 Places SDK for iOS(新版)API,后者由以下产品组成:
从 Places SDK for iOS 迁移到 Places Swift SDK for iOS(预览版)
Places Swift SDK for iOS(预览版)代码可与旧版实现搭配使用,因此您可以逐步进行迁移。
如需了解详情以及如何迁移到新 SDK,请查看迁移指南。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):2025-01-14。"],[[["Places Swift SDK for iOS (Preview) offers a Swift-native experience with benefits like value types, default parameters, optionals, concurrency support, and improved type safety, built upon the existing Places SDK for iOS."],["It's currently in preview mode and exclusively available for new Places SDK for iOS APIs, including Place Autocomplete, Details, Photos, Text Search, and Nearby Search."],["Migration from the existing Places SDK for iOS can be done incrementally as the new Swift SDK works alongside older implementations."],["The GitHub URL for Places Swift SDK for iOS (Preview) has been updated to \u003chttps://github.com/googlemaps/ios-places-sdk\u003e, replacing the previous URL."]]],[]]