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 : HashableParameters
- id:
The value that you used to tag the view when you define it in the
symbolsparameter of the Canvas initializer Init(opaque:colormode:rendersasynchronously:renderer:symbols:).
Return Value
The resolved symbol, or nil if SwiftUI can’t find a child view with the given id.