UIKit/UIImage. A local image is downscaled to the display bounds and inlined into the payload, so it renders on the glasses without a network fetch.
struct Image: ViewComponentSerializable, FlexShapedComponent, Sendable
init
(
uri
, sizePreset
, cornerRadius
)
|
Creates an image component with the given URI and styling.
Signature
public init( uri: String, sizePreset: ImageSize, cornerRadius: CornerRadius) Parameters uri: String
The URI of the image to display.
|
init
(
image
, sizePreset
, cornerRadius
)
|
Creates an image component from a local image.
The image is downscaled to the display bounds and inlined into the display payload as data, so it renders on the glasses without a network fetch.
Signature
public init( image: UIImage, sizePreset: ImageSize, cornerRadius: CornerRadius) Parameters image: UIImage
The local image to display.
|
alignSelf
: Alignment? |
Per-child cross-axis alignment override applied when this image is a child of a FlexBox.
|
cornerRadius
: CornerRadius |
Corner rounding preset.
|
flexGrow
: Float |
Flex-grow factor applied when this image is a child of a FlexBox.
|
flexShrink
: Float |
Flex-shrink factor applied when this image is a child of a FlexBox.
|
sizePreset
: ImageSize |
How the image should be sized.
|
uri
: String |
The URI of the image to display. Empty for an image created from a local UIKit/UIImage.
|
alignSelf
(
value
)
| |
flexGrow
(
value
)
| |
flexShrink
(
value
)
|