resolve(_:)
Gets a version of a text view that’s fixed with the current values of the graphics context’s environment.
Declaration
func resolve(_ text: Text) -> GraphicsContext.ResolvedTextParameters
- text:
The Text view to resolve.
Return Value
A text view that’s resolved into the current context’s environment, taking into account environment values like the display resolution and current color scheme.
Discussion
You can measure the resolved text by calling its measure(in:) method. You can draw the resolved text with the context’s draw(_:in:) or draw(_:at:anchor:) method.