Poly
Poly
is an unofficial Google Poly SDK, written in Swift.
This library makes it easy to integrate with Google Poly while providing a few additional client-side features.
Features | |
---|---|
? | 3D model search |
⬇ | 3D model download management |
? | advanced 3D data caching |
? | Poly reachability support |
? | Swift 5.0 |
Need a different version of Swift?
5.0
- Target your Podfile to the latest release or master (will push when Cache updates)4.2
- Target your Podfile to theswift4.2
branch
Important
Before you begin, ensure that you have read Google’s Poly documentation, understand best practices for attribution, and have generated your API key.
Quick Start
The sample project provides several examples for integration.
You can install the dependencies with the command pod install
or by running the makefile commands make setup && make pods
.
Alternatively, drop the source files into your Xcode project.
Examples
Import the library.
Setup your API key.
List assets using keywords.
Get independent asset information.
Download a 3D asset and its resources for rendering, either using the asset identifier or the asset model object itself.
The API also provides private object loading but additional endpoints may need to be added. Auth support is setup and available via the authToken
property.
Documentation
You can find the docs here. Documentation is generated with jazzy and hosted on GitHub-Pages.
Resources
- Poly iOS Quickstart
- Poly API Reference
- Poly Google Developer Website
- Poly iOS Sample Project
- Swift Evolution
- NextLevel Media Capture Library
License
Poly
is available under the MIT license, see the LICENSE file for more information.