When to use it
Keep image sources native to the platform. Use initials or a short fallback when no image is available.
Display a native image or fallback identity at shared avatar sizes.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Keep image sources native to the platform. Use initials or a short fallback when no image is available.
LumenAvatar(
fallback: "SM",
size: .lg,
label: "Santiago Molina"
)Reference
The primary shared and platform-specific options exposed by LumenAvatar.
| API | Values or type | Default | Description |
|---|---|---|---|
| image | Image? | nil | Provides the platform-native image source. |
| fallback | String | ? | Provides fallback text, normally initials. |
| size | sm · md · lg | md | Uses a 32, 40, or 56 unit diameter. |
| label | String? | nil | Names an identity-bearing avatar. |
Native behavior
Keep image sources native to the platform. Use initials or a short fallback when no image is available.
Supply a label when the avatar conveys identity. Omit it when the same name appears adjacent and the image is decorative.
Shared component