STTextView Annotations Plugin

Installation

Add the plugin package as a dependency of your application, then register/add it to the STTextView instance:

import AnnotationsPlugin

// Implement AnnotationsDataSource protocol to provide annotations
annotationsPlugin = AnnotationsPlugin(dataSource: self)

textView.addPlugin(
    annotationsPlugin
)

Check DemoApp for reference implementation

Screenshot 2023-09-13 at 19 00 09

GitHub

View Github