struct Text: ViewComponentSerializable, FlexShapedComponent, Sendable
init
(
content
, style
, color
)
|
Creates a text component with the given content and styling.
Signature
public init(_ content: String, style: TextStyle, color: TextColor) Parameters _ content: String
The text string to display.
|
alignSelf
: Alignment? |
Per-child cross-axis alignment override applied when this text is a child of a FlexBox.
|
color
: TextColor |
Color preset for the text.
|
content
: String |
The text string to display.
|
flexGrow
: Float |
Flex-grow factor applied when this text is a child of a FlexBox.
|
flexShrink
: Float |
Flex-shrink factor applied when this text is a child of a FlexBox.
|
style
: TextStyle |
Typography preset for the text.
|
alignSelf
(
value
)
| |
flexGrow
(
value
)
| |
flexShrink
(
value
)
|