In the "Architecture of views and windows" is indicated, quote:
Views work in conjunction with Core Animation layers to handle rendering and animation of the contents of views. Each view in UIKit is supported by a level object (usually an instance of the CALayer class), which manages the backup storage for presentation and processes the viewing-related animations.
Further in the section "Drawing viewing cycle" is indicated:
The UIView class uses an on-demand drawing model to represent content. When a view first appears, a request for its content appears on the screen. The system captures a snapshot of this content and uses this snapshot as a visual representation of the view.
Does this mean that the content created in the view in the drawRect method call is recorded in the snapshot stored in its base layer of basic support?
If not, where is this snapshot of the content โlocatedโ?
If this is not the case, does this mean that CALayer is used to render โstaticโ content, content that does not change very often, and drawRect is used to render content that often changes, for example, in a game application?
ps
The questions are not related to any particular code implementation.
I just want to understand the architecture of the ios presentation layer.
source share