mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-04-27 15:07:43 +00:00
Updating project
This commit is contained in:
parent
4d98b5f3f7
commit
fa6e301806
5 changed files with 11 additions and 7 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## Version 2.6.0
|
||||||
|
- Fixed issue with crashing during video recording
|
||||||
|
- Using storyboard subviews should no longer require calling `bringSubvviewToFront`
|
||||||
|
- Changed demo project to use autolayout
|
||||||
|
- Reverted Swift4 changes to new branch
|
||||||
|
|
||||||
## Version 2.4.0
|
## Version 2.4.0
|
||||||
- Added support for no-audio video recording
|
- Added support for no-audio video recording
|
||||||
- Added `audioEnabled` property
|
- Added `audioEnabled` property
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,7 @@ class ViewController: SwiftyCamViewController, SwiftyCamViewControllerDelegate {
|
||||||
|
|
||||||
override func viewDidAppear(_ animated: Bool) {
|
override func viewDidAppear(_ animated: Bool) {
|
||||||
super.viewDidAppear(animated)
|
super.viewDidAppear(animated)
|
||||||
// view.bringSubview(toFront: captureButton)
|
captureButton.delegate = self
|
||||||
view.bringSubview(toFront: flipCameraButton)
|
|
||||||
view.bringSubview(toFront: flashButton)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func swiftyCam(_ swiftyCam: SwiftyCamViewController, didTake photo: UIImage) {
|
func swiftyCam(_ swiftyCam: SwiftyCamViewController, didTake photo: UIImage) {
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,6 @@ open class SwiftyCamButton: UIButton {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// UILongPressGestureRecognizer Function
|
/// UILongPressGestureRecognizer Function
|
||||||
|
|
||||||
@objc fileprivate func LongPress(_ sender:UILongPressGestureRecognizer!) {
|
@objc fileprivate func LongPress(_ sender:UILongPressGestureRecognizer!) {
|
||||||
switch sender.state {
|
switch sender.state {
|
||||||
case .began:
|
case .began:
|
||||||
|
|
|
||||||
|
|
@ -255,8 +255,9 @@ open class SwiftyCamViewController: UIViewController {
|
||||||
|
|
||||||
override open func viewDidLoad() {
|
override open func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
view = PreviewView(frame: view.frame, videoGravity: videoGravity)
|
previewLayer = PreviewView(frame: view.frame, videoGravity: videoGravity)
|
||||||
previewLayer = view as! PreviewView!
|
view.addSubview(previewLayer)
|
||||||
|
view.sendSubview(toBack: previewLayer)
|
||||||
|
|
||||||
// Add Gesture Recognizers
|
// Add Gesture Recognizers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'SwiftyCam'
|
s.name = 'SwiftyCam'
|
||||||
s.version = '2.4.0'
|
s.version = '2.6.0'
|
||||||
s.summary = 'A Simple, Snapchat inspired camera Framework written in Swift'
|
s.summary = 'A Simple, Snapchat inspired camera Framework written in Swift'
|
||||||
s.ios.deployment_target = '8.0'
|
s.ios.deployment_target = '8.0'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue