productinfo / STTextView-Plugin-Annotations

Annotations Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Annotations Plugin

License:The Unlicense


Languages

Language:Swift 100.0%