cloud-sdk-ios-fiori icon indicating copy to clipboard operation
cloud-sdk-ios-fiori copied to clipboard

macOS support

Open MarcoEidinger opened this issue 4 years ago • 0 comments

Prerequisites:

  • Swift package dependencies have to support macOS
    • adopt recent 1.2.0 release of github.com/sstadelman/observable-array
  • 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

MarcoEidinger avatar Jun 24 '20 21:06 MarcoEidinger