From e9bf6571b320ba1752cd7733c9fb9581e349ba02 Mon Sep 17 00:00:00 2001 From: WWT Mobile Team Date: Fri, 15 Jun 2018 12:26:38 -0500 Subject: [PATCH] Allow CameraViewController to be used in a navigation stack without losing its completion - Wes & Megan --- .../ViewController/CameraViewController.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/ALCameraViewController/ViewController/CameraViewController.swift b/ALCameraViewController/ViewController/CameraViewController.swift index d9e07099..128a22a1 100644 --- a/ALCameraViewController/ViewController/CameraViewController.swift +++ b/ALCameraViewController/ViewController/CameraViewController.swift @@ -541,7 +541,6 @@ open class CameraViewController: UIViewController { internal func close() { onCompletion?(nil, nil) - onCompletion = nil } internal func showLibrary() { @@ -605,7 +604,6 @@ open class CameraViewController: UIViewController { } self?.onCompletion?(image, asset) - self?.onCompletion = nil } confirmViewController.modalTransitionStyle = UIModalTransitionStyle.crossDissolve present(confirmViewController, animated: true, completion: nil) @@ -623,7 +621,6 @@ open class CameraViewController: UIViewController { } self?.onCompletion?(image, asset) - self?.onCompletion = nil } confirmViewController.modalTransitionStyle = UIModalTransitionStyle.crossDissolve present(confirmViewController, animated: true, completion: nil)