Skip to content

添加AsyncImageAttachment特性支持

Compare
Choose a tag to compare
@lixiang1994 lixiang1994 released this 24 Apr 11:05
· 24 commits to master since this release

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.