|
1 | 1 | #if canImport(CoreImage) |
2 | | -import CoreImage |
| 2 | + import CoreImage |
3 | 3 |
|
4 | | -@available(watchOS, unavailable) |
5 | | -extension CIQRCodeDescriptor.ErrorCorrectionLevel: CustomDumpStringConvertible { |
| 4 | + @available(watchOS, unavailable) |
| 5 | + extension CIQRCodeDescriptor.ErrorCorrectionLevel: CustomDumpStringConvertible { |
6 | 6 | public var customDumpDescription: String { |
7 | | - switch self { |
8 | | - case .levelL: |
9 | | - return "CIQRCodeDescriptor.ErrorCorrectionLevel.levelL" |
10 | | - case .levelM: |
11 | | - return "CIQRCodeDescriptor.ErrorCorrectionLevel.levelM" |
12 | | - case .levelQ: |
13 | | - return "CIQRCodeDescriptor.ErrorCorrectionLevel.levelQ" |
14 | | - case .levelH: |
15 | | - return "CIQRCodeDescriptor.ErrorCorrectionLevel.levelH" |
16 | | - @unknown default: |
17 | | - return "CIQRCodeDescriptor.ErrorCorrectionLevel.(@unknown default, rawValue: \(self.rawValue))" |
18 | | - } |
| 7 | + switch self { |
| 8 | + case .levelL: |
| 9 | + return "CIQRCodeDescriptor.ErrorCorrectionLevel.levelL" |
| 10 | + case .levelM: |
| 11 | + return "CIQRCodeDescriptor.ErrorCorrectionLevel.levelM" |
| 12 | + case .levelQ: |
| 13 | + return "CIQRCodeDescriptor.ErrorCorrectionLevel.levelQ" |
| 14 | + case .levelH: |
| 15 | + return "CIQRCodeDescriptor.ErrorCorrectionLevel.levelH" |
| 16 | + @unknown default: |
| 17 | + return |
| 18 | + "CIQRCodeDescriptor.ErrorCorrectionLevel.(@unknown default, rawValue: \(self.rawValue))" |
| 19 | + } |
19 | 20 | } |
20 | | -} |
| 21 | + } |
21 | 22 |
|
22 | | - |
23 | | -extension CIDataMatrixCodeDescriptor.ECCVersion: CustomDumpStringConvertible { |
| 23 | + extension CIDataMatrixCodeDescriptor.ECCVersion: CustomDumpStringConvertible { |
24 | 24 | public var customDumpDescription: String { |
25 | | - switch self { |
26 | | - |
27 | | - case .v000: |
28 | | - return "CIDataMatrixCodeDescriptor.ECCVersion.v000" |
29 | | - case .v050: |
30 | | - return "CIDataMatrixCodeDescriptor.ECCVersion.v050" |
31 | | - case .v080: |
32 | | - return "CIDataMatrixCodeDescriptor.ECCVersion.v080" |
33 | | - case .v100: |
34 | | - return "CIDataMatrixCodeDescriptor.ECCVersion.v100" |
35 | | - case .v140: |
36 | | - return "CIDataMatrixCodeDescriptor.ECCVersion.v140" |
37 | | - case .v200: |
38 | | - return "CIDataMatrixCodeDescriptor.ECCVersion.v200" |
39 | | - @unknown default: |
40 | | - return "CIDataMatrixCodeDescriptor.ECCVersion.(@unknown default, rawValue: \(self.rawValue))" |
41 | | - } |
42 | | - } |
43 | | -} |
| 25 | + switch self { |
44 | 26 |
|
| 27 | + case .v000: |
| 28 | + return "CIDataMatrixCodeDescriptor.ECCVersion.v000" |
| 29 | + case .v050: |
| 30 | + return "CIDataMatrixCodeDescriptor.ECCVersion.v050" |
| 31 | + case .v080: |
| 32 | + return "CIDataMatrixCodeDescriptor.ECCVersion.v080" |
| 33 | + case .v100: |
| 34 | + return "CIDataMatrixCodeDescriptor.ECCVersion.v100" |
| 35 | + case .v140: |
| 36 | + return "CIDataMatrixCodeDescriptor.ECCVersion.v140" |
| 37 | + case .v200: |
| 38 | + return "CIDataMatrixCodeDescriptor.ECCVersion.v200" |
| 39 | + @unknown default: |
| 40 | + return |
| 41 | + "CIDataMatrixCodeDescriptor.ECCVersion.(@unknown default, rawValue: \(self.rawValue))" |
| 42 | + } |
| 43 | + } |
| 44 | + } |
45 | 45 |
|
46 | | -extension CIRenderDestinationAlphaMode: CustomDumpStringConvertible { |
| 46 | + extension CIRenderDestinationAlphaMode: CustomDumpStringConvertible { |
47 | 47 | public var customDumpDescription: String { |
48 | | - switch self { |
49 | | - case .none: |
50 | | - return "CIRenderDestinationAlphaMode.none" |
51 | | - case .premultiplied: |
52 | | - return "CIRenderDestinationAlphaMode.premultiplied" |
53 | | - case .unpremultiplied: |
54 | | - return "CIRenderDestinationAlphaMode.unpremultiplied" |
55 | | - @unknown default: |
56 | | - return "CIRenderDestinationAlphaMode.(@unknown default, rawValue: \(self.rawValue)" |
57 | | - } |
| 48 | + switch self { |
| 49 | + case .none: |
| 50 | + return "CIRenderDestinationAlphaMode.none" |
| 51 | + case .premultiplied: |
| 52 | + return "CIRenderDestinationAlphaMode.premultiplied" |
| 53 | + case .unpremultiplied: |
| 54 | + return "CIRenderDestinationAlphaMode.unpremultiplied" |
| 55 | + @unknown default: |
| 56 | + return "CIRenderDestinationAlphaMode.(@unknown default, rawValue: \(self.rawValue)" |
| 57 | + } |
58 | 58 | } |
59 | | -} |
| 59 | + } |
60 | 60 |
|
61 | 61 | #endif |
0 commit comments