Class
The TextView class is a simple subclass of iOS native UILabel that has a CATextLayer as its default backing layer.
open class TextView: UILabel
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
.
Returns the main layer of the view as a CATextLayer
.
open var textLayer: CATextLayer {
return layer as! CATextLayer
}
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
}
result(s) found for “”.