diff --git a/Findr/Classes/FindrConfiguration.swift b/Findr/Classes/FindrConfiguration.swift index 493d949..eb1a9d5 100644 --- a/Findr/Classes/FindrConfiguration.swift +++ b/Findr/Classes/FindrConfiguration.swift @@ -70,7 +70,7 @@ internal func deltaAngle(_ angle1: Double, angle2: Double) -> Double //MARK: FindrViewController Delegate protocol FindrViewControllerDelegate { - + func findrViewController(findrViewController: FindrViewController, failToOpenWithError error: Error) func findrViewControllerUpdateAngleForAnnotation(findrViewController: FindrViewController,annotation: FindrAnnotation , angle: CGFloat) func findrViewControllerFixedVerticalPositionForAnnotation(findrViewController: FindrViewController)-> CGFloat? func findrViewControllerWillShowAnnotationView(findrViewController: FindrViewController, annotationView: FindrAnnotationView) diff --git a/Findr/Classes/FindrViewController.swift b/Findr/Classes/FindrViewController.swift index f3453cf..78afe5f 100644 --- a/Findr/Classes/FindrViewController.swift +++ b/Findr/Classes/FindrViewController.swift @@ -653,11 +653,7 @@ open class FindrViewController: UIViewController, FindrTrackingManagerDelegate // var yPos: CGFloat = (self.view.bounds.size.height * 0.65) - (annotationViewHeight * CGFloat(annotation.verticalLevel)) // yPos -= CGFloat( powf(Float(annotation.verticalLevel), 2) * 4) // -// - - - - +// return CGFloat(scale) } @@ -1062,7 +1058,10 @@ open class FindrViewController: UIViewController, FindrTrackingManagerDelegate } else { - print("HDAugmentedReality: Cannot create capture session, use createCaptureSession method to check if device is capable for augmented reality.") + //print("HDAugmentedReality: Cannot create capture session, use createCaptureSession method to check if device is capable for augmented reality.") + if let error = captureSessionResult.error { + delegate?.findrViewController(findrViewController: self, failToOpenWithError: error) + } } }