Skip to content

krzyzanowskim/STTextView-Plugin-Annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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