SeeMoreTextView
NSTextView/UITextView subclass with an expandable See More link. It helps avoid cluttering with too much information, by hiding some of it, allowing users to choose whether to display the hidden information. The hidden information is displayed by clicking on the See More link.
Advantages
The main advantage of SeeMoreTextView is that it preserves text model intact fully accomplishing its functionality with the layout manager.
How
Installation
Swift Package as dependency in Xcode 11+
- Go to "File" -> "Swift Packages" -> "Add Package Dependency"
- Paste SeeMoreTextView repository URL into the search field:
https://github.com/SergeBouts/SeeMoreTextView.git
-
Click "Next"
-
Ensure that the "Rules" field is set to something like this: "Version: Up To Next Major: 3.0.6"
-
Click "Next" to finish
For more info, check out here.
CocoaPods
Add the following to your Podfile:
Then run pod install
.