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

CameraSDK 0.0.4

CameraSDK 0.0.4

TestsTested
LangLanguage SwiftSwift
License Apache 2
ReleasedLast Release Aug 2017
SwiftSwift Version 3.1
SPMSupports SPM

Maintained by Vlad Zavalikhatko, dehimb.



 
Depends on:
SAMKeychain>= 0
MD5Digest>= 0
SDWebImage>= 0
MBProgressHUD>= 0
 

CameraSDK 0.0.4

  • By
  • 908 Inc.

About

CameraSDK is an easy to use camera screen with Stories implementation.

Installation

The most convenient way to use it - include via cocoapods.

use_frameworks!
pod "CameraSDK", "~> 0.0.2"

Run pod install - that's it. You all set up

Usage

Complete workflow is very simple and consists of two steps:

1 Present a StoryBuilderViewController instance

Lib uses storyboard, use method from extension to get it:

let storyBuilder = StoryBuilderViewController.storyboardController()

Then present it whereever you want:

myContainerViewController.present(storyBuilder, animated: true)

2 Took the result photo

All the magic happens inside, so you don't have to mess with any processing at all. Just set the delegate property of StoryBuilderViewController and receive an image. For example, you can give a choise to user what to do next:

storyBuilder.delegate = self


# MARK: StoryBuilderViewControllerDelegate

func shareImage(_ image: UIImage) {
    storyBuilder.present(UIActivityViewController(activityItems: [image], applicationActivities: nil), animated: true)
}

Add your Stickerpipe ApiKey

Add separate plist file named 'Stories.plist' to your project with your Stickerpipe ApiKey

<key>StoriesAPIKey</key>
<string>YOUR-API-KEY</string>

To obtain your ApiKey visit http://stickerpipe.com/

API

This SDK uses Stickerpipe API. You can find its documentation here

Content

List of Stamp packs and Stories is customizable. Contact us for more information at [email protected]

License

CameraSDK is available under the Apache 2 license. See the LICENSE file for more information.