diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..2e76632 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,15 @@ +name: Swift + +on: [push] + +jobs: + build: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v diff --git a/Sources/CrossKitTypes/Cross-Kit Image.swift b/Sources/CrossKitTypes/Cross-Kit Image.swift new file mode 100644 index 0000000..da78af4 --- /dev/null +++ b/Sources/CrossKitTypes/Cross-Kit Image.swift @@ -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