Add special effects on your AR Camera with Camerai

Getting Started

To use the Camerai SDK get the latest build from your personal Camerai dashboard or download it at camerai.co and follow the next steps to integrate and initialize it.

Running the sample application

Unzip CameraiSDKExamples–X.X.X.X.zip archive and open SDKExamples.xcworkspace in Xcode. Simply build and run any project on a device (at the moment it does not run on the simulator, see Known Bugs and Issues section below). Investigate AppDelegate.m and ViewController.m files for details on how to initialize and use the SDK. Look at the EditorController class files to see how you can implement rendering on your own custom view controller.

Embedding into a new or existing project

Copy Solo.framework to the project folder. Then on the Build Phases tab press the + button and select Solo.framework

On the same tab press the + button on the top left and “New Copy Files” phase

Rename the new phase to something like “Embed Solo Framework”, select Frameworks destination folder and include the name Solo.framework into the phase by pressing + button

In Build settings for your project target change “Always Embed Swift Standard Libraries” flag to YES.

Now build and make sure that your target builds successfully

Connecting from cocoapods

The latest version of the Camerai SDK is always available as a pod and can be easily connected to the project if you are using cocoapods to manage dependencies (https://cocoapods.org/). It is not yet registered publicly so you can use a direct reference to our github public repository. Just add the following line to the Podfile.

Or

Initializing

The SDK requires only one line of code for initialization. In the application delegate implementation file include the Solo framework header

then inside the didFinishLaunching method add initSolo: method call of the SoloManager:

All downloaded examples already contain this initialization line with your access token.

Check out camerai.co for more information

  • Article By :
    Founder of DaddyCoding. Studied Computer Science, Information System and Information Technology at BYU-Hawaii. Currently spending most of my time researching and learning on helping to expose making iOS apps.

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*