Add helpers

This commit is contained in:
Guille Gonzalez
2025-12-31 12:59:11 +01:00
parent f805b3adf5
commit 5e8e93b53e
4 changed files with 160 additions and 6 deletions

View 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