@@ -102,15 +102,15 @@ class Snapshots {
102102 try await server. start ( )
103103 }
104104
105- @MainActor func display( typeName: String , id: String ) async -> ( Result < UIImage , Error > , SnapshotPreviewsCore . Preview ) {
105+ @MainActor func display( typeName: String , id: String ) async -> ( Result < UIImage , RenderingError > , SnapshotPreviewsCore . Preview ) {
106106 await withCheckedContinuation { continuation in
107107 display ( typeName: typeName, id: id) { result, preview in
108108 continuation. resume ( returning: ( result, preview) )
109109 }
110110 }
111111 }
112112
113- @MainActor func display( typeName: String , id: String , completion: @escaping ( Result < UIImage , Error > , SnapshotPreviewsCore . Preview ) -> Void ) {
113+ @MainActor func display( typeName: String , id: String , completion: @escaping ( Result < UIImage , RenderingError > , SnapshotPreviewsCore . Preview ) -> Void ) {
114114 let previewTypes = findPreviews { name in
115115 return name == typeName
116116 }
@@ -122,7 +122,7 @@ class Snapshots {
122122 }
123123 }
124124
125- @MainActor func display( preview: SnapshotPreviewsCore . Preview , completion: @escaping ( Result < UIImage , Error > , Float ? ) -> Void ) throws {
125+ @MainActor func display( preview: SnapshotPreviewsCore . Preview , completion: @escaping ( Result < UIImage , RenderingError > , Float ? ) -> Void ) throws {
126126 var view = preview. view ( )
127127 view = AnyView ( PreferredColorSchemeWrapper { view } )
128128 view. snapshot (
0 commit comments