A computer vision enterprise platform that transforms buildings into intelligent environments.
Installation
CocoaPods
To integrate VeraSDK into your Xcode project using CocoaPods, add it to your Podfile
:
pod 'VeraSDK', :git => 'https://github.com/resonai/vera-ios-sdk'
Then, run the following command:
$ pod install
Swift Package Manager
To integrate VeraSDK using Swift Package Manager, add the package dependency to your Package.swift
:
dependencies: [
.package(url: "https://github.com/resonai/vera-ios-sdk", branch: "main")
]
Xcode
From Xcode 11 it is possible to add Swift Package dependencies to Xcode
projects and link targets to products of those packages; this is the
easiest way to integrate VeraSDK with an existing xcodeproj
.
Integration
VeraSDK provides access to the Vera platform to any Native application. When the user finds themselves in any of the Vera supported sites (buildings), they can open Vera and it will localize them inside the building with a very accurate precision. Once localized, the user can access any AR Experiences (ARXs) set up for that specific site.
Some examples of ARXs include Navigation, 3D objects & animations, Interactions with the environment, etc.
- Import VeraSDK into your project.
// Swift
import VeraSDK
-
Add the required Info.plist keys if your app doesn't already.
-
Create a configuration object. Most fields are optional, check the example integration for more parameters.
Vera.useConfig(
Vera.Configuration(
app: .init(
clientID: "<app_client_id>"
)
)
)
- Build an instance of
VeraViewController
and present it.
let vera = Vera.getController()
present(vera, animated: true)
- Please refer to the testing docs to learn how to test if the integration was successful.
Bi-directional Communication
Check the bi-directional communication docs to learn how to send and receive events from the SDK.
Info.plist Keys
NSCameraUsageDescription
- VeraSDK needs access to the camera in order to support AR.NSLocationWhenInUseUsageDescription
- VeraSDK needs access to location to provide accurate AR experiences.
Note
Vera doesn't need location permission if you configure it with a single site ID.
If your app doesn't already access the camera, we recommend using something like:
- "
<your app>
needs access to the camera in order to render AR." - "
<your app>
needs location access to provide accurate AR experiences."