Class

TextView

The TextView class is a simple subclass of iOS native UILabel that has a CATextLayer as its default backing layer.


Declaration

open class TextView: UILabel 

Overview

There are a multitude of ways to work with text in iOS. One of the most common elements for text in user interfaces is the UILabel object. Typically, a UILabel isn’t easily animatable unless you properly expose its backing layer as a CATextLayer.

Topics

Properties

textLayer

Returns the main layer of the view as a CATextLayer.

open var textLayer: CATextLayer {
    return layer as! CATextLayer
}

layerClass

An override that returns a CATextLayer as the default layer type for this view’s class.

override open class var layerClass: AnyClass {
    return CATextLayer.self
}
background Made with Flow.
underscore Made with Flow.
line2 Made with Flow.
line1 Made with Flow.
circle Made with Flow.
hit Made with Flow.

result(s) found for “”.