Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/DixPatel009/Record-UIVIew

UIView recording library.
https://github.com/DixPatel009/Record-UIVIew

ios swift swift4 uiview uiview-recorder xcode

Last synced: 3 months ago
JSON representation

UIView recording library.

Awesome Lists containing this project

README

        

# Record-UIVIew

Record-UIVIew is a simple library that allows you to create videos from UIViews. It records animations and actions as they happen by taking screen shots of a UIView in a series and then creating a video and saving it to your app’s document folder.

## Setup
To setup Record-UIVIew, add the `Recorder.swift`and `ImageToVideo.swift` file to your project.

## Example Usage

### For Swift

class viewController: UIViewController {

@IBOutlet weak var screenRecoderView: UIView!

private var screenRecorder = Recorder()

override func viewDidLoad() {
super.viewDidLoad()
self.screenRecorder.view = self.screenRecoderView
}

@IBAction func startRecordAction(_ sender: UIButton) {
self.screenRecorder.start()
}

@IBAction func StopRecordAction(_ sender: UIButton) {
self.screenRecorder.stop { (strUrl) in
print("Final Video Document Direcotry URL : " + strUrl)
}
}

}