Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

changed access from public to open #183

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions ALCameraViewController/ViewController/CameraViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ public extension CameraViewController {
}
}

public class CameraViewController: UIViewController {
open class CameraViewController: UIViewController {

var didUpdateViews = false
var allowCropping = false
var animationRunning = false

var lastInterfaceOrientation : UIInterfaceOrientation?
var onCompletion: CameraViewCompletion?
open var onCompletion: CameraViewCompletion?
var volumeControl: VolumeControl?

var animationDuration: TimeInterval = 0.5
Expand Down Expand Up @@ -172,11 +172,11 @@ public class CameraViewController: UIViewController {
NotificationCenter.default.removeObserver(self)
}

public override var prefersStatusBarHidden: Bool {
open override var prefersStatusBarHidden: Bool {
return true
}

public override var preferredStatusBarUpdateAnimation: UIStatusBarAnimation {
open override var preferredStatusBarUpdateAnimation: UIStatusBarAnimation {
return UIStatusBarAnimation.slide
}

Expand All @@ -185,7 +185,7 @@ public class CameraViewController: UIViewController {
* and add the views on this superview. Then, request
* the update of constraints for this superview.
*/
public override func loadView() {
open override func loadView() {
super.loadView()
view.backgroundColor = UIColor.black
[cameraView,
Expand All @@ -206,7 +206,7 @@ public class CameraViewController: UIViewController {
* Any other dynamic constraint are configurable when the
* device is rotating, based on the device orientation.
*/
override public func updateViewConstraints() {
override open func updateViewConstraints() {

if !didUpdateViews {
configCameraViewConstraints()
Expand Down Expand Up @@ -259,7 +259,7 @@ public class CameraViewController: UIViewController {
* Configure the camera focus when the application
* start, to avoid any bluried image.
*/
public override func viewDidLoad() {
open override func viewDidLoad() {
super.viewDidLoad()
addCameraObserver()
addRotateObserver()
Expand All @@ -272,7 +272,7 @@ public class CameraViewController: UIViewController {
/**
* Start the session of the camera.
*/
public override func viewWillAppear(_ animated: Bool) {
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
cameraView.startSession()
}
Expand All @@ -281,7 +281,7 @@ public class CameraViewController: UIViewController {
* Enable the button to take the picture when the
* camera is ready.
*/
public override func viewDidAppear(_ animated: Bool) {
open override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
if cameraView.session?.isRunning == true {
notifyCameraReady()
Expand All @@ -291,7 +291,7 @@ public class CameraViewController: UIViewController {
/**
* This method will disable the rotation of the
*/
override public func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
override open func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransition(to: size, with: coordinator)
lastInterfaceOrientation = UIApplication.shared.statusBarOrientation
if animationRunning {
Expand Down