GraphicsContextResolvedText
A text view resolved to a particular environment.
Declaration
type GraphicsContextResolvedText = { firstBaseline(options: { in: Symbolic<CGSize>; }): Scalar; lastBaseline(options: { in: Symbolic<CGSize>; }): Scalar; measure(options: { in: Symbolic<CGSize>; }): SymbolicSize; shading: GraphicsContextShading | GraphicsContextShading; copy(): GraphicsContextResolvedText; };struct ResolvedTextProperties
shading*GraphicsContextShading | GraphicsContextShading
Overview
You resolve a Text view in preparation for drawing it into a context,
either manually by calling resolve(_:)-4dx65 or automatically
when calling draw(_:in:)-5opqf or draw(_:at:anchor:)-5dgmd.
The resolved text view takes into account environment values like the
display resolution and current color scheme.
From Apple’s SwiftUI documentation. Code samples there are Swift.
See also
More in Drawing and shapes.
- AngleA geometric angle whose value you access in either radians or degrees.
- AngularGradientAn angular gradient.
- AnyGradientA color gradient.
- BlendModeModes for compositing a view with overlapping content.
- ButtonBorderShapeA shape used to draw a button's border.
- ColorMatrixA matrix to use in an RGBA color transformation.
- ConcentricRectangleAnimatableDataThe type defining the data to animate.
- ContainerRelativeShapeA shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle.
- ContentShapeKindsA kind for the content shape of a view.
- CoordinateSpaceProtocolA frame of reference within the layout system.
- DefaultGlassEffectShapeThe default shape applied by glass effects, a capsule.
- EllipticalGradientA radial gradient that draws an ellipse.