Open SoylentGraham opened 1 week ago
Seems like all the backgroundColor:NSColor variables can be replaced with SwiftUI.Color and then at the end a cross platform alias
backgroundColor:NSColor
SwiftUI.Color
#if os(macOS) import AppKit typealias UXTextView = NSTextView typealias UXTextViewDelegate = NSTextViewDelegate typealias UColor = NSColor #else import UIKit typealias UXTextView = UITextView typealias UXTextViewDelegate = UITextViewDelegate typealias UColor = UIColor #endif
Note to self, use #if canImport(UIKit) not os()
#if canImport(UIKit)
os()
Seems like all the
backgroundColor:NSColor
variables can be replaced withSwiftUI.Color
and then at the end a cross platform alias