CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.

VeraSDK 1.2.7

VeraSDK 1.2.7

Maintained by Alex Culeva.



 
Depends on:
libwebp= 1.2.4
Cognex.cmbSDK= 2.7.1
ScanditBarcodeCapture>= 0
 

VeraSDK 1.2.7

  • By
  • ResonAI and Alex Culeva

Vera: A computer vision enterprise platform that transforms buildings into intelligent environments

A computer vision enterprise platform that transforms buildings into intelligent environments.

Swift 5.7 Vera Release

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.

  1. Import VeraSDK into your project.
// Swift
import VeraSDK
  1. Add the required Info.plist keys if your app doesn't already.

  2. 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>"
        )
    )
)
  1. Build an instance of VeraViewController and present it.
let vera = Vera.getController()
present(vera, animated: true)
  1. 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."