ReadMoreTextView:具有“多读”“少读”功能的 UITextView 子类

时间:2021-05-29 13:01:13
【文件属性】:
文件名称:ReadMoreTextView:具有“多读”“少读”功能的 UITextView 子类
文件大小:91KB
文件格式:ZIP
更新时间:2021-05-29 13:01:13
Swift 阅读更多文本视图 UITextView 子类具有“多读”/“少读”功能和 UITextView 扩展来处理字符范围内的触摸。 用法 let textView = ReadMoreTextView() textView.text = "Lorem ipsum dolor ..." textView.shouldTrim = true textView.maximumNumberOfLines = 4 textView.attributedReadMoreText = NSAttributedString(string: "... Read more") textView.attributedReadLessText = NSAttributedString(string: " Read less") 自定义触摸处理。 该项目还包括一些帮助程序方法,这些方法可让您检测和处理任意文本范围内的
【文件预览】:
ReadMoreTextView-master
----.gitignore(494B)
----Sources()
--------ReadMoreTextView.swift(13KB)
--------UITextView+Extensions.swift(3KB)
----Example()
--------ReadMoreTextView()
--------Pods()
--------ReadMoreTextView.xcodeproj()
--------ReadMoreTextView.xcworkspace()
--------Podfile.lock(292B)
--------Podfile(89B)
----LICENSE(1KB)
----CHANGELOG.md(876B)
----.swift-version(4B)
----ReadMoreTextView.podspec(1KB)
----README.md(3KB)
----screenshot.gif(59KB)

网友评论