Skip to content

Releases: lixiang1994/AttributedString

修复内存泄漏

19 Sep 08:04
Compare
Choose a tag to compare

添加隐私清单

17 Apr 09:39
Compare
Choose a tag to compare
3.4.1

添加隐私清单

添加隐私清单

09 Apr 12:51
Compare
Choose a tag to compare
3.4.0

添加隐私清单

修复点击事件崩溃

12 Dec 03:20
Compare
Choose a tag to compare
3.3.5

修复点击事件崩溃

暂时修复 Xcode 14.0 iOS12 Release Mode Crash 疑似苹果编译器漏洞

09 Oct 07:49
Compare
Choose a tag to compare
3.3.4

暂时修复 Xcode 14.0 iOS12 Release Mode Crash 疑似苹果编译器漏洞

优化别名 防止冲突

23 Sep 09:50
Compare
Choose a tag to compare

移除wacth demo

开放Attachment属性

12 Jul 03:03
Compare
Choose a tag to compare
3.3.2

开放Attachment中的属性

优化内部Action执行流程

07 Jul 07:49
Compare
Choose a tag to compare
3.3.1

优化内部Action执行流程

疫情早日结束吧! 😷

27 Apr 10:08
Compare
Choose a tag to compare

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特性支持

24 Apr 11:05
Compare
Choose a tag to compare

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.