ARCore-Swift-Sampler icon indicating copy to clipboard operation
ARCore-Swift-Sampler copied to clipboard

ARCore Cloud Anchors sample code in Swift.

About

Because The official sample is written in objc, I have made swift original sample.

This sample focuses to make you understand How Cloud Anchors work, so I have written the minimum required codes.

Send Receive
gif image-b938c504d902-1 gif image-8d03c122cec6-1

Usage

1. Add GoogleService-Info.plist into your project

Make firebase project and follow below the document.

https://firebase.google.com/docs/ios/setup

2. Put API_KEY into Const.apiKey

You can find API_KEY in firebase console setting. Get that and put into the Const.swift's apiKey property.

Reference

  • https://github.com/google-ar/arcore-ios-sdk
  • https://developers.google.com/ar/develop/ios/overview