A custom Label that uses CATextLayer under the hood
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))
Usage
let label = TextLabel()
label.foregroundColor = .black
label.backgroundColor = .clear
label.text = .string("Test label")
...
For details see the Example app.