mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-04-22 13:45:55 +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
|
||||
|
||||
## 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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ open class SwiftyCamButton: UIButton {
|
|||
}
|
||||
|
||||
/// UILongPressGestureRecognizer Function
|
||||
|
||||
@objc fileprivate func LongPress(_ sender:UILongPressGestureRecognizer!) {
|
||||
switch sender.state {
|
||||
case .began:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue