//
//  CGColorExtensions.swift
//  EAKit
//
//  Created by Elias Abel on 03/02/2017.
//  Copyright © 2017 EAKit
//

#if os(macOS)
	import Cocoa
#else
	import UIKit
#endif

public extension CGColor {
	
	#if !os(macOS)
	/// EAKit: UIColor.
	public var uiColor: UIColor? {
		return UIColor(cgColor: self)
	}
	#endif
	
	#if os(macOS)
	/// EAKit: NSColor.
	public var nsColor: NSColor? {
		return NSColor(cgColor: self)
	}
	#endif
	
}
