size
TypeScriptget size(): { width: number; height: number }Swift declarationvar size: CGSize { get }The size of the image.
struct · iOS 15.0+ · SDK 27.1
struct ResolvedImageAn image resolved to a particular environment. You resolve an ``Image`` in preparation for drawing it into a context, either manually by calling ``resolve(_:)-898z6``, or automatically when calling ``draw(_:in:style:)-blhz`` or ``draw(_:at:anchor:)-1z5wt``. The resolved image takes into account environment values like the display resolution and current color scheme.
get size(): { width: number; height: number }Swift declarationvar size: CGSize { get }The size of the image.
get shading(): (GraphicsContext_Shading) | nullSwift declarationvar shading: GraphicsContext.Shading?An optional shading to fill the image with. The value of this property defaults to ``GraphicsContext/Shading/foreground`` for template images, and to `nil` otherwise.
set shading(value: (GraphicsContext_Shading) | null)Swift declarationvar shading: GraphicsContext.Shading?An optional shading to fill the image with. The value of this property defaults to ``GraphicsContext/Shading/foreground`` for template images, and to `nil` otherwise.
get baseline(): numberSwift declarationlet baseline: CGFloatThe distance from the top of the image to its baseline. If the image has no baseline, this value is equivalent to the image's height.
No declarations were skipped in this snapshot.