Skip to content

Commit

Permalink
#5: Added NativeImage
Browse files Browse the repository at this point in the history
  • Loading branch information
KyNorthstar committed Dec 9, 2019
1 parent 5e40e2a commit fd2a965
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Sources/CrossKitTypes/Cross-Kit Image.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// Cross-Kit Color.swift
// Cross-Kit Types
//
// Created by Ben Leggiero on 2019-12-08.
// Copyright © 2019 BH-1-PS
//



#if !ONLY_APP_KIT && canImport(UIKit)
import UIKit



public typealias NativeImage = UIImage

#elseif canImport(AppKit)
import AppKit



public typealias NativeImage = NSImage

#else
#error("Unsupported platform; neither UIKit nor AppKit")
#endif

0 comments on commit fd2a965

Please sign in to comment.