Skip to content

Commit

Permalink
Merge pull request #6 from RougeWare/feature/5-NativeImage
Browse files Browse the repository at this point in the history
Added NativeImage
  • Loading branch information
KyNorthstar authored Dec 9, 2019
2 parents 5e40e2a + fd2a965 commit 8b0d9bd
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 8b0d9bd

Please sign in to comment.