Rewrite view.layer.render to view.drawHierarchy My understanding is that render superimposes all view levels to obtain a combination of all view levels, resulting in black shadows And drawHierarchy is explained in the document as Get the current context My understanding is to only get the top-level view, that is, the view of the final effect visible to the user after rendering, so there will be no black shadow
Rewrite view.layer.render to view.drawHierarchy
My understanding is that render superimposes all view levels to obtain a combination of all view levels, resulting in black shadows
And drawHierarchy is explained in the document as Get the current context
My understanding is to only get the top-level view, that is, the view of the final effect visible to the user after rendering, so there will be no black shadow