Skip to content

Commit 59d48ab

Browse files
committed
macCatalyst
1 parent 5e90b80 commit 59d48ab

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

SwiftDraw/NSImage+Image.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
// 3. This notice may not be removed or altered from any source distribution.
3030
//
3131

32-
#if canImport(AppKit)
32+
#if canImport(UIKit)
33+
#elseif canImport(AppKit)
3334
import AppKit
3435
import CoreGraphics
3536

SwiftDrawTests/CGRendererTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
//
3131

3232
@testable import SwiftDraw
33-
#if canImport(AppKit)
33+
34+
#if canImport(UIKit)
35+
#elseif canImport(AppKit)
3436
import AppKit
3537
import CoreGraphics
3638
import XCTest

SwiftDrawTests/NSBitmapImageRep+Extensions.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
// 3. This notice may not be removed or altered from any source distribution.
3030
//
3131

32-
#if canImport(AppKit)
32+
#if canImport(UIKit)
33+
#elseif canImport(AppKit)
3334
import AppKit
3435

3536
extension NSBitmapImageRep {

SwiftDrawTests/NSImage+ImageTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131

3232
import XCTest
3333
@testable import SwiftDraw
34-
#if canImport(AppKit)
34+
#if canImport(UIKit)
35+
#elseif canImport(AppKit)
3536

3637
final class NSImageTests: XCTestCase {
3738

0 commit comments

Comments
 (0)