Releases: lixiang1994/AttributedString
Releases · lixiang1994/AttributedString
修复内存泄漏
添加隐私清单
3.4.1 添加隐私清单
添加隐私清单
3.4.0 添加隐私清单
修复点击事件崩溃
3.3.5 修复点击事件崩溃
暂时修复 Xcode 14.0 iOS12 Release Mode Crash 疑似苹果编译器漏洞
3.3.4 暂时修复 Xcode 14.0 iOS12 Release Mode Crash 疑似苹果编译器漏洞
优化别名 防止冲突
移除wacth demo
开放Attachment属性
3.3.2 开放Attachment中的属性
优化内部Action执行流程
3.3.1 优化内部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.self
Please read the demo AttachmentViewController.swift
file for details.