Skip to content

Commit

Permalink
Update CamVC+LifeCycle.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Jan 28, 2025
1 parent 3d879df commit ee75105
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/CameraView/CamView/vc/CamVC+LifeCycle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import UIKit
* Lifecycle
*/
extension CamVC {
// fixme: add doc
/// Sets up the main view for the camera view controller.
override public func loadView() {
let camView = CamView(frame: .zero, onComplete: onComplete)
view = camView
}
// fixme: add doc

/// Called after the controller's view has been loaded into memory. Starts the camera view.
override public func viewDidLoad() {
super.viewDidLoad()
(view as? CamView)?.start()
Expand Down

0 comments on commit ee75105

Please sign in to comment.