API reference

ViewComponent Protocol

Extends Sendable
A protocol for components that can be arranged inside a FlexBox layout.
All view component types (FlexBox, Text, Button, Image, Icon) conform to this protocol.

Signature

protocol ViewComponent: Sendable