Skip to content

AttributedString.Checking增加attachment类型, 强化func observe

Compare
Choose a tag to compare
@lixiang1994 lixiang1994 released this 16 Jul 07:37
· 95 commits to master since this release

New Version ヾ(@^▽^@)ノ 💥

AttributedString.Checkingcase link 优先筛选NSAttributedString.Key.link属性类型.

API

Changed:

AttributedString.Checking.Result:

old:

case action(AttributedString.Action.Result)

new:

case action(AttributedString.Action.Result.Content)

Add:

AttributedString.Checking:

case attachment

AttributedString.Checking.Result:

case attachment(NSTextAttachment)

UILabel / UITextView / NSTextField

func observe(_ checkings: [Checking] = .defalut, highlights: [Highlight] = .defalut, with callback: @escaping (NSRange, Checking.Result) -> Void)