mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Yattee v2 rewrite
This commit is contained in:
14
Yattee/Extensions/PlatformImage.swift
Normal file
14
Yattee/Extensions/PlatformImage.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// PlatformImage.swift
|
||||
// Yattee
|
||||
//
|
||||
// Cross-platform image typealias.
|
||||
//
|
||||
|
||||
#if os(macOS)
|
||||
import AppKit
|
||||
typealias PlatformImage = NSImage
|
||||
#else
|
||||
import UIKit
|
||||
typealias PlatformImage = UIImage
|
||||
#endif
|
||||
Reference in New Issue
Block a user