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.0.5
Official repo for Vera iOS SDK.
⭐️ 0
🕓 1 week ago
iOS
.package(url: "https://github.com/resonai/vera-ios-sdk.git", from: "v1.0.5")

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

GitHub

link
Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v1.0.5
1 week ago
  • Fixed a bug where the webview wouldn't properly restore after a reload and would lead to black screens and infinite loadings.
  • Fixed a bug where closing Vera by going back would crash the application.

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