drawLayer(content:)
Draws a new layer, created by drawing code that you provide, into the context.
Declaration
func drawLayer(content: (inout GraphicsContext) throws -> Void) rethrowsParameters
- content:
A closure that receives a new Graphicscontext as input. This context represents a new transparency layer that you can draw into. When the closure returns, SwiftUI draws the new layer into the current context.