From 1b3bafaff18164ca8b06f6f3e937b890507b67f5 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Mon, 19 Jun 2023 17:09:11 +0300 Subject: [PATCH 1/2] Mark renamed properties as deprecated --- Sources/WeScan/ImageScannerController.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/WeScan/ImageScannerController.swift b/Sources/WeScan/ImageScannerController.swift index b6d915d0..913e4431 100644 --- a/Sources/WeScan/ImageScannerController.swift +++ b/Sources/WeScan/ImageScannerController.swift @@ -196,16 +196,16 @@ public struct ImageScannerResults { /// The detected rectangle which was used to generate the `scannedImage`. public var detectedRectangle: Quadrilateral - @available(*, unavailable, renamed: "originalScan") + @available(*, deprecated, renamed: "originalScan") public var originalImage: UIImage? - @available(*, unavailable, renamed: "croppedScan") + @available(*, deprecated, renamed: "croppedScan") public var scannedImage: UIImage? - @available(*, unavailable, renamed: "enhancedScan") + @available(*, deprecated, renamed: "enhancedScan") public var enhancedImage: UIImage? - @available(*, unavailable, renamed: "doesUserPreferEnhancedScan") + @available(*, deprecated, renamed: "doesUserPreferEnhancedScan") public var doesUserPreferEnhancedImage = false init( From f9865863115a9d45303fe67c5587599fa31d9342 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Wed, 21 Jun 2023 22:58:22 +0300 Subject: [PATCH 2/2] Remove deprecated properties --- Sources/WeScan/ImageScannerController.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Sources/WeScan/ImageScannerController.swift b/Sources/WeScan/ImageScannerController.swift index 913e4431..825434a7 100644 --- a/Sources/WeScan/ImageScannerController.swift +++ b/Sources/WeScan/ImageScannerController.swift @@ -196,18 +196,6 @@ public struct ImageScannerResults { /// The detected rectangle which was used to generate the `scannedImage`. public var detectedRectangle: Quadrilateral - @available(*, deprecated, renamed: "originalScan") - public var originalImage: UIImage? - - @available(*, deprecated, renamed: "croppedScan") - public var scannedImage: UIImage? - - @available(*, deprecated, renamed: "enhancedScan") - public var enhancedImage: UIImage? - - @available(*, deprecated, renamed: "doesUserPreferEnhancedScan") - public var doesUserPreferEnhancedImage = false - init( detectedRectangle: Quadrilateral, originalScan: ImageScannerScan,