-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
271 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,5 @@ Carthage/Build | |
# etc | ||
Framework/ | ||
*~ | ||
*.swp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// CommonTypes.swift | ||
// MMDSceneKit | ||
// | ||
// Created by magicien on 1/11/17. | ||
// Copyright © 2017 DarkHorse. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
#if os(iOS) || os(tvOS) || os(watchOS) | ||
import UIKit | ||
#elseif os(OSX) | ||
import AppKit | ||
#endif | ||
|
||
#if os(iOS) || os(tvOS) || os(watchOS) | ||
public typealias OSFloat = Float | ||
public typealias OSColor = UIColor | ||
public typealias OSImage = UIImage | ||
|
||
extension CGColor { | ||
static public let black = UIColor.black.cgColor | ||
static public let white = UIColor.white.cgColor | ||
static public let clear = UIColor.clear.cgColor | ||
} | ||
#elseif os(macOS) | ||
public typealias OSFloat = CGFloat | ||
public typealias OSColor = NSColor | ||
public typealias OSImage = NSImage | ||
#endif | ||
|
||
#if os(watchOS) | ||
public typealias CAAnimation = Any | ||
public typealias CAAnimationGroup = Any | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.