lixiang1994 / AttributedString

基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
MIT License
846 stars 76 forks source link

AttributedString.swift文件中别名的问题 #49

Closed XuanYuLanFeng closed 1 year ago

XuanYuLanFeng commented 1 year ago

在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

lixiang1994 commented 1 year ago

已更名为ASImage.. 3.3.3