Skip to content

Commit 54c8d54

Browse files
committed
Add new CompressionQuality values
1 parent a8e6abb commit 54c8d54

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Sources/SnapshotTestingHEIC/HEIC/CompressionQuality.swift

+11-3
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,23 @@ public struct CompressionQuality: ExpressibleByFloatLiteral {
1212
public init(_ value: Float) {
1313
self.value = value
1414
}
15-
15+
1616
public static var lossless: CompressionQuality {
1717
return 1.0
1818
}
19-
19+
20+
public static var low: CompressionQuality {
21+
return 0.8
22+
}
23+
2024
public static var medium: CompressionQuality {
2125
return 0.5
2226
}
23-
27+
28+
public static var high: CompressionQuality {
29+
return 0.2
30+
}
31+
2432
public static var maximum: CompressionQuality {
2533
return 0.0
2634
}

0 commit comments

Comments
 (0)