I am building a cross-platform app using SwiftUI. I have a Data object grabbed from a SwiftUI PhotosPicker and I want to reduce the file size; however, I want to do this without the use of UIKit since it is only available for iOS/iPadOS.
Is there a cross-platform solution, or do I need to handle separate cases for os(iOS) and os(macOS)?