Skip to content

Instantly share code, notes, and snippets.

View stoqn4opm's full-sized avatar

Stoyan Stoyanov stoqn4opm

  • HedgehogLab
  • United Kingdom
View GitHub Profile
@CrystDragon
CrystDragon / MyTextLabel.swift
Created May 17, 2018 08:19
Most basic custom UITextInput conformance, without selection interaction, no UI elements but only pure texts.
import UIKit
class MyTextLabel: UIView {
var textLayer = CATextLayer()
var textStorage: String = "" {
didSet {
textLayer.string = textStorage
}
}