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