AttributedString icon indicating copy to clipboard operation
AttributedString copied to clipboard

AttributedString.swift文件中别名的问题

Open XuanYuLanFeng opened this issue 1 year ago • 0 comments

在AttributedString.swift中第14行至第24行代码中 #if os(macOS) import AppKit public typealias Image = NSImage public typealias Color = NSColor public typealias Font = NSFont #else import UIKit public typealias Image = UIImage public typealias Color = UIColor public typealias Font = UIFont #endif 上述代码中别名Image会与SwiftUI中的Image(uiImage:(UIImage(systemName: ""))!)起冲突,可以测试一下,如有此问题,可以修改别名,或者添加前缀如public typealias LXImage = NSImage

XuanYuLanFeng avatar Sep 23 '22 01:09 XuanYuLanFeng