Updating project

This commit is contained in:
Andrew Walz 2017-08-25 14:49:38 -06:00
parent 4d98b5f3f7
commit fa6e301806
5 changed files with 11 additions and 7 deletions

View file

@ -1,5 +1,11 @@
# 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
- Added support for no-audio video recording
- Added `audioEnabled` property

View file

@ -38,9 +38,7 @@ class ViewController: SwiftyCamViewController, SwiftyCamViewControllerDelegate {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
// view.bringSubview(toFront: captureButton)
view.bringSubview(toFront: flipCameraButton)
view.bringSubview(toFront: flashButton)
captureButton.delegate = self
}
func swiftyCam(_ swiftyCam: SwiftyCamViewController, didTake photo: UIImage) {

View file

@ -80,7 +80,6 @@ open class SwiftyCamButton: UIButton {
}
/// UILongPressGestureRecognizer Function
@objc fileprivate func LongPress(_ sender:UILongPressGestureRecognizer!) {
switch sender.state {
case .began:

View file

@ -255,8 +255,9 @@ open class SwiftyCamViewController: UIViewController {
override open func viewDidLoad() {
super.viewDidLoad()
view = PreviewView(frame: view.frame, videoGravity: videoGravity)
previewLayer = view as! PreviewView!
previewLayer = PreviewView(frame: view.frame, videoGravity: videoGravity)
view.addSubview(previewLayer)
view.sendSubview(toBack: previewLayer)
// Add Gesture Recognizers

View file

@ -8,7 +8,7 @@
Pod::Spec.new do |s|
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.ios.deployment_target = '8.0'