Latest 0.0.4
Homepage https://github.com/908Inc/CameraSDK
License Apache License, Version 2.0
Platforms ios 8.0
Dependencies SAMKeychain, MD5Digest, SDWebImage, MBProgressHUD
Authors

Version
Platform

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"

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)

and show camera

storyBuilder.showCamera(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.

Latest podspec

{
    "name": "CameraSDK",
    "version": "0.0.4",
    "summary": "An easy to use lib for integrating Stories into your app",
    "description": "Fast and convenient way of adding cool Stories into your app. See screenshots for more detail",
    "homepage": "https://github.com/908Inc/CameraSDK",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "908 Inc.": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/908Inc/CameraSDK.git",
        "tag": "0.0.4"
    },
    "source_files": "src/**/*.swift",
    "pod_target_xcconfig": {
        "OTHER_SWIFT_FLAGS[config=Debug]": "-DDEBUG"
    },
    "resources": "res/*",
    "dependencies": {
        "SAMKeychain": [],
        "MD5Digest": [],
        "SDWebImage": [],
        "MBProgressHUD": []
    },
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This