cloud-sdk-ios-fiori
cloud-sdk-ios-fiori copied to clipboard
macOS support
Prerequisites:
- Swift package dependencies have to support macOS
- adopt recent
1.2.0
release of github.com/sstadelman/observable-array
- adopt recent
- declare support for macOS in Package.swift
- fix build issues for macOS (due to usage of UIKit)
Example of conditional handling of color
#if os(iOS) || os(tvOS) || os(watchOS)
import UIKit
public typealias Color = UIColor
#elseif os(OSX)
import Cocoa
public typealias Color = NSColor
#endif
Another area of work is the use of UIViewRepresentable vs. NSViewRepresentable, see here for details