ChimeHQ / Ligature

Text selection, grouping, indentation, and manipulation in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Platforms Documentation Discord

Ligature

A Swift package to aid in text selection, grouping, indentation, and manipulation.

Ligature includes aliases and implemenations as needed to make parts of the UIKit and AppKit text interfaces source-compatible.

Warning

This is currently very WIP.

Installation

dependencies: [
    .package(url: "https://github.com/ChimeHQ/Ligature", branch: "main")
],

Usage

// on UIKit
let tokenizer = TextInputStringTokenizer(textInput: someUITextView)

// with AppKit
let tokenizer = TextInputStringTokenizer(textInput: someNSTextInputClient)

Contributing and Collaboration

I would love to hear from you! Issues or pull requests work great. A Discord server is also available for live help, but I have a strong bias towards answering in the form of documentation.

I prefer collaboration, and would love to find ways to work together if you have a similar project.

I prefer indentation with tabs for improved accessibility. But, I'd rather you use the system you want and make a PR than hesitate because of whitespace.

By participating in this project you agree to abide by the Contributor Code of Conduct.

About

Text selection, grouping, indentation, and manipulation in Swift

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Swift 100.0%