FaceRecog PhotoCollage SDK for OSP
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 carthageTo 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.
import FRSDKFRSDKStartMonitoring { (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.
class MyViewController: UIViewController {
func functionToTriggerPhotoCollage() {
let vc = FRPhotoCollageCreate()
vc.delegate = self
let nav = UINavigationController(rootViewController: vc)
self.present(nav, animated: true, completion: nil)
}
}extension MyViewController: FRPhotoCollageCreateDelegate {
func didTapCancel() {
debugPrint("PhotoCollage is dismissed.")
}
func didTapDone() {
debugPrint("PhotoCollage is completed.")
}
}