Skip to content

Commit f3814df

Browse files
committed
Update NSImage+.swift
1 parent 9136b66 commit f3814df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/coreml-stable-diffusion-swift/ext/NSImage+.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
// Created by Igor on 23.03.2023.
66
//
77

8+
9+
#if os(macOS)
10+
811
import Foundation
912
import AppKit
1013

11-
#if os(macOS)
1214
/// https://stackoverflow.com/questions/24595908/swift-nsimage-to-cgimage
1315
@available(macOS 13.1, *)
1416
extension NSImage {

0 commit comments

Comments
 (0)