Add helpers
This commit is contained in:
11
Sources/SwiftUIMath/Internal/Helpers/Platform.swift
Normal file
11
Sources/SwiftUIMath/Internal/Helpers/Platform.swift
Normal file
@@ -0,0 +1,11 @@
|
||||
// Derived from SwiftMath by Mike Griebling (MIT License)
|
||||
|
||||
import SwiftUI
|
||||
|
||||
#if canImport(UIKit)
|
||||
typealias PlatformColor = UIColor
|
||||
typealias PlatformBezierPath = UIBezierPath
|
||||
#elseif canImport(AppKit)
|
||||
typealias PlatformColor = NSColor
|
||||
typealias PlatformBezierPath = NSBezierPath
|
||||
#endif
|
||||
Reference in New Issue
Block a user