|
public typealias View = UIView |
|
public typealias View = NSView |
causes 'View' is ambiguous for type lookup in this context when using Cartography in the same file as a SwiftUI View. For example, with HostingViews.
It can be fixed by specifying SwiftUI.View and var body: some SwiftUI.View, but seems best to avoid clashing with built-in types.
Cartography/Cartography/View.swift
Line 13 in d0dc3f3
Cartography/Cartography/View.swift
Line 22 in d0dc3f3
causes
'View' is ambiguous for type lookup in this contextwhen using Cartography in the same file as a SwiftUI View. For example, with HostingViews.It can be fixed by specifying
SwiftUI.Viewandvar body: some SwiftUI.View, but seems best to avoid clashing with built-in types.