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

resolveSymbol(id:)

Gets the identified child view as a resolved symbol, if the view exists.

Declaration 宣言

func resolveSymbol<ID>(id: ID) -> GraphicsContext.ResolvedSymbol? where ID : Hashable

Return Value 戻り値

The resolved symbol, or nil if SwiftUI can’t find a child view with the given id.

Parameters パラメータ

id

The value that you used to tag the view when you define it in the symbols parameter of the Canvas initializer init(opaque:colorMode:rendersAsynchronously:renderer:symbols:).

See Also 参照

Drawing a Child View