LifeupSnap 0.1.6

LifeupSnap 0.1.6

LifeupSnap维护。



  • 作者:Khwan Siricharoenporn
  • Khwan Siricharoenporn(别名:DEVG)开发的小型框架 LifeupSnap。如果您需要使用相机应用但又不想手动实现,可以使用这个框架,该框架包含四个功能。

LifeupSnap

LifeupSnap 是Khwan Siricharoenporn(别名:DEVG)开发的一个小型框架。如果您需要使用相机应用但又不想手动实现,可以使用这个框架,它包含以下四个功能的一部分。

安装

使用 cocoapods.org 的包管理器 pod 安装 LifeupSnap。

pod 'LifeupSnap'

版本

beta 0.1.6 -> pod 'LifupSnap', '0.1.6'

屏幕截图

image image image image image image

功能

  • 原始模式 (original) -> (.original) -> 按照您的设备屏幕大小捕获相机。
  • 方型模式 (square) -> (.square) -> 捕获相机并将其转换为原始大小的正方形。
  • 视频模式 (video) -> (.video) -> 按照您的设备屏幕大小捕获视频(最长持续时间为30秒)。
  • 飞镖功能 -> (.boomerang) -> 是一个视频循环。该功能将原始视频生成循环视频并合并成一个文件,类似于Facebook上的飞镖效果。(最大时长为10秒。)

使用方法

import LifeupSnap

let lfsSnapViewController = LFSSnapViewController()
lfsSnapViewController.delegate = self
lfsSnapViewController.features = [.original, .square, .boomerang, .video]

navigationController?.present(lfsSnapViewController, animated: true, completion: nil)

//OR

navigationController?.push(lfsSnapViewController, animated: true)
//In same viewController must be implement delegate

//LFSSnapDelegate
//Each functions in LFSSnapDelegate is optional function

extension ViewController: LFSSnapDelegate {
//When edited video, boomerang and save button pressed.
//It will return saved path URL in camera roll
func snapVideo(whenSaved receiveURL: URL) {
print(receiveURL.absoluteString)
}

//When pressed next button after edited it will return URL of file
func snapVideo(whenNextAfterEdited receiveURL: URL) {
print(receiveURL.absoluteString)
}

//When edited photo, square photo and save button pressed.
//It will return UIImage
func snapPhoto(whenSaved receivePhoto: UIImage) {
print(receivePhoto)
}

//When pressed next button after edited it will return UIImage
func snapPhoto(whenNextAfterEdited receivePhoto: UIImage) {
print(receivePhoto)
}
}

贡献

请先打开一个问题来讨论您想更改的内容。

许可证

Lifeup co., ltd及感谢GrowingTextView。

开发者

Khwan Siricharoenporn (DEVG) ([email protected])