lastBaseline
TypeScriptlastBaseline(size: { width: number; height: number }): numberSwift declarationfunc lastBaseline(in size: CGSize) -> CGFloatGets the distance from the first line's ascender to the last line's baseline.
struct · iOS 15.0+ · SDK 27.1
struct ResolvedTextA text view resolved to a particular environment. 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.
lastBaseline(size: { width: number; height: number }): numberSwift declarationfunc lastBaseline(in size: CGSize) -> CGFloatGets the distance from the first line's ascender to the last line's baseline.
firstBaseline(size: { width: number; height: number }): numberSwift declarationfunc firstBaseline(in size: CGSize) -> CGFloatGets the distance from the first line's ascender to its baseline.
measure(size: { width: number; height: number }): { width: number; height: number }Swift declarationfunc measure(in size: CGSize) -> CGSizeMeasures the size of the resolved text for a given area into which the text should be placed. - Parameter size: The area to place the ``Text`` view in.
get shading(): GraphicsContext_ShadingSwift declarationvar shading: GraphicsContext.ShadingThe shading to fill uncolored text regions with. This value defaults to the ``GraphicsContext/Shading/foreground`` shading.
set shading(value: GraphicsContext_Shading)Swift declarationvar shading: GraphicsContext.ShadingThe shading to fill uncolored text regions with. This value defaults to the ``GraphicsContext/Shading/foreground`` shading.
No declarations were skipped in this snapshot.