I am trying to use a legacy framework as a Swift package. This framework has an umbrella header which imports UIKit via #import <UIKit/UIKit.h>
, so the swift source files do not explicitly import UIKit. Building via SPM fails with error messages like: error: cannot find type 'UIFont' in scope
. If I change the source files to explicitly import UIKit, these errors go away, but it seems there should be a Swift Package Manager equivalent to allowing a wider scope import.
See this PR for the specific project and my current workaround: https://github.com/i-schuetz/SwiftCharts/pull/419