TextLabel: A Swift Custom Label with CATextLayer

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


Download Details:

Author: stateman92
Source Code: https://github.com/stateman92/TextLabel 
License: GPL-3.0 license

#swift #text #custom 

TextLabel: A Swift Custom Label with CATextLayer
1.30 GEEK