前言
iOS 14: UIKit no longer render anything if you override that displayLayer: method.
- 知识回顾: iOS 中的渲染框架
CALayer 是显示的基础:存储 bitmap
contents属性提供了 layer 的内容,是一个指针类型,在 iOS 中的类型就是 CGImageRef(在 OS X 中还可以是 NSImage)
@property(nullable, strong) id contents;
Apple