iOS

Whether you're looking for a way to add augmented reality and virtual reality content to your iOS app or have always wanted to build an immersive application, you need a way to get 3D content in a scalable way. The SvrfSDK is a framework that allows you to easily add the best augmented reality and virtual reality content to your project.

Svrf SDK

The SDK starts by giving you access to the Svrf API, home to the largest search engine for augmented reality and virtual reality content. If you're looking to add face filters to your app, it also allows your users to stream ARKit compatible 3D face filters.

ARKit Face Tracking Requirements

ARKit's face tracking requires an iOS device with front-facing TrueDepth camera - TrueDepth camera - a depth sensing camera created by Apple. It interprets face data by projecting and analyzing over 30,000 invisible dots to create a depth map of your face and also captures an infrared image of your face. Supported devices include: iPhone X, iPhone XS, iPhone XS Max, iPhone XR, iPad Pro (11-inch), and iPad Pro (12.9-inch, 3rd generation). . Supported devices include:

  • iPhone X, iPhone XS, iPhone XS Max, or iPhone XR.
  • iPad Pro (11-inch) or iPad Pro (12.9-inch, 3rd generation).

To integrate face tracking for face filters on other iOS devices, a third-party face tracking library is required.

Installation

CocoaPods

1. Install CocoaPods

CocoaPods is a dependency manager for Cocoa projects. Enter the following command to install CocoaPods:

# Xcode 9 + 10
sudo gem install cocoapods

The process may take a moment, please wait. For further installation instructions, please read the CocoaPods installation guide.

2. Add the SvrfSDK entry to your Podfile

If you don't have a Podfile, you can create one by running the command pod init in your project root. Open your project's Podfile and add the SvrfSDK dependency:

platform :ios, '12.0'

target 'YourTargetName' do
  use_frameworks!
  pod 'SvrfSDK'
end

3. Install the SvrfSDK in the project

To install the SvrfSDK into your Xcode project, run the following command:

pod install

Note: If you saw "Unable to satisfy the following requirements" issue during pod install, please run the following commands to update your pod repo and install the pod again:

pod repo update && pod install

Manually

If you prefer not to use dependency manager, you can integrate the SvrfSDK into your project manually.

Examples

ARKitFaceFilterDemo - An example of the SvrfSDK in Swift.


What's Next

Learn how to authenticate your API Key so you can make your first requests.

Authenticate

iOS


Whether you're looking for a way to add augmented reality and virtual reality content to your iOS app or have always wanted to build an immersive application, you need a way to get 3D content in a scalable way. The SvrfSDK is a framework that allows you to easily add the best augmented reality and virtual reality content to your project.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.