Swiftpack.co - resonai/vera-ios-sdk as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by resonai.
resonai/vera-ios-sdk v1.1.3
Official repo for Vera iOS SDK.
⭐️ 0
🕓 3 weeks ago
iOS
.package(url: "https://github.com/resonai/vera-ios-sdk.git", from: "v1.1.3")

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

Since binary frameworks are very poorly supported by SPM, we dropped official support for it at the moment. If you are not using CocoaPods and SPM integration doesn't work out-the-box create us an issue.

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."

GitHub

link
Stars: 0
Last commit: 3 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.1.3
3 weeks ago

What's Changed

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics