Releases: lixiang1994/AttributedString
Releases · lixiang1994/AttributedString
Release list
修复内存泄漏
添加隐私清单
添加隐私清单
修复点击事件崩溃
暂时修复 Xcode 14.0 iOS12 Release Mode Crash 疑似苹果编译器漏洞
3.3.4 暂时修复 Xcode 14.0 iOS12 Release Mode Crash 疑似苹果编译器漏洞
优化别名 防止冲突
开放Attachment属性
优化内部Action执行流程
疫情早日结束吧! 😷
ASAttributedString.Attribute
add:
// currency
public static func custom(_ value: [NSAttributedString.Key: Any])
// macOS
public static func cursor(_ value: NSCursor)
public static func markedClauseSegment(_ value: Int)
public static func spellingState(_ value: SpellingState)
public static func superscript(_ value: Int)
public static func textAlternatives(_ value: NSTextAlternatives)
public static func toolTip(_ value: String)ASAttributedString.Attribute.ParagraphStyle
add:
@available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOSApplicationExtension 8.0, *)
public static func usesDefaultHyphenation(_ value: Bool)
public static func lineBreakStrategy(_ value: NSParagraphStyle.LineBreakStrategy)添加AsyncImageAttachment特性支持
Attachment Async Image: (Only supports iOS: UITextView)
// ASAttributedString.AsyncImageAttachment
textView.attributed.text = """
\(.image(url, placeholder: xxxxx))
"""Custom loader:
ASAttributedString.AsyncImageAttachment.Loader = AsyncImageAttachmentKingfisherLoader.selfPlease read the demo AttachmentViewController.swift file for details.