TextLabel

A custom Label that uses CATextLayer under the hood! ?

Setup

Add the following to Package.swift:

.package(url: "https://github.com/stateman92/TextLabel", exact: .init(0, 0, 1))

Or add the package in Xcode.

Usage

let label = TextLabel()
label.foregroundColor = .black
label.backgroundColor = .clear
label.text = .string("Test label")
...

For details see the Example app.

Example

Example

GitHub

View Github