You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SnapshotTesting/Plugins/ImageSerializer.swift
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,12 @@ import AppKit
13
13
/// The `ImageSerializer` class leverages plugins that conform to the `ImageSerialization` protocol to encode and decode images in different formats.
14
14
/// It automatically retrieves all available image serialization plugins from the `PluginRegistry` and uses them based on the specified `ImageSerializationFormat`.
15
15
/// If no plugin is found for the requested format, it defaults to using PNG encoding/decoding.
16
-
publicclassImageSerializer{
16
+
classImageSerializer{
17
17
18
18
/// A collection of plugins that conform to the `ImageSerialization` protocol.
19
-
letplugins:[ImageSerialization]
19
+
privateletplugins:[ImageSerialization]
20
20
21
-
publicinit(){
21
+
init(){
22
22
self.plugins =PluginRegistry.allPlugins()
23
23
}
24
24
@@ -32,7 +32,7 @@ public class ImageSerializer {
32
32
/// - image: The `SnapImage` to encode.
33
33
/// - imageFormat: The format in which to encode the image.
34
34
/// - Returns: The encoded image data, or `nil` if encoding fails.
0 commit comments