Skip to content

Commit

Permalink
Merge pull request #8 from RougeWare/develop
Browse files Browse the repository at this point in the history
Sync Develop into Master
  • Loading branch information
KyNorthstar authored Dec 9, 2019
2 parents e0fc7ed + 8b0d9bd commit d64faa8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -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
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 d64faa8

Please sign in to comment.