Skip to content

Commit c8718f6

Browse files
committed
Update HelperImage.swift
1 parent 41a9fcc commit c8718f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/coreml-stable-diffusion-swift/helper/HelperImage.swift

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import AppKit
1818
/// - toSize: Fit to size
1919
/// - Returns: NSImage
2020
@available(macOS 13.1, *)
21+
@MainActor
2122
public func getNSImage(from data : Data?, cropped toSize : NSSize? = nil) async -> NSImage? {
2223

2324
guard let value = data else{

0 commit comments

Comments
 (0)