Instance Method インスタンスメソッド

drawLayer(content:)

Draws a new layer, created by drawing code that you provide, into the context.

Declaration 宣言

func drawLayer(content: (inout GraphicsContext) throws -> Void) rethrows

Parameters パラメータ

context

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.