Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/DixPatel009/Record-UIVIew
- Owner: DixPatel009
- Created: 2021-04-01T10:41:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-01T11:04:08.000Z (almost 4 years ago)
- Last Synced: 2024-10-13T14:40:46.492Z (3 months ago)
- Topics: ios, swift, swift4, uiview, uiview-recorder, xcode
- Language: Swift
- Homepage:
- Size: 10.7 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
}
}
}