/STTextView-Plugin-Annotations

Annotations Plugin

Primary LanguageSwiftThe UnlicenseUnlicense

STTextView Annotations Plugin

Installation

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

import STAnnotationsPlugin

// Implement AnnotationsDataSource protocol to provide annotations
let plugin = STAnnotationsPlugin(dataSource: self)

// Add/register the plugin in the STTextView instance
textView.addPlugin(plugin)

Check DemoApp for a reference implementation.

Screenshot 2024-02-05 at 02 23 26