Skip to content

pushian/FRSDK

Repository files navigation

FRSDK

FaceRecog PhotoCollage SDK for OSP

Installation

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate SnapKit into your Xcode project using Carthage, specify it in your Cartfile:

github "Pushian/FRSDK"

Run carthage update to build the framework and drag the following built Alamofire.framework AlamofireImage.framework FRPhotoCollageSDK.framework SnapKit.framework SVProgressHUD.framework SwiftyJSON.framework as well as the bundle file FRPhotoCollageSDK.bundle inside FRPhotoCollageSDK.framework into your Xcode project.

Usage

Quick Start

import FRSDK

Location Checking SDK

FRSDKStartMonitoring { (isSuccess) in
            debugPrint(isSuccess)
}

Each time the application is launched, the above function should be called to whether the location notification should be triggered. If the return vailable is true, the location notification should be triggered. Otherwise, it should remain quiet.

Photo Collage Create SDK

class MyViewController: UIViewController {

   func functionToTriggerPhotoCollage() {
        let vc = FRPhotoCollageCreate()
        vc.delegate = self 
        
        let nav = UINavigationController(rootViewController: vc)
        self.present(nav, animated: true, completion: nil)
    }

}

Call Back Functions

extension MyViewController: FRPhotoCollageCreateDelegate {
    func didTapCancel() {
        debugPrint("PhotoCollage is dismissed.")
    }
    
    func didTapDone() {
        debugPrint("PhotoCollage is completed.")
    }
    
}

About

Testing SDK for FaceRecog

Resources

Stars

Watchers

Forks

Packages

No packages published