screens/DSUserProfileCard
DSUserProfileCard
screensFull user profile card with avatar, name, bio, stats row, and action buttons.
iOS 17+macOS 14+
Purpose
Profile screens, hovercards, and team member detail views.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| userreq | DSUser | โ | User model (name, bio, avatar, stats). |
| onFollow | (() -> Void)? | nil | Follow/connect action. |
| onMessage | (() -> Void)? | nil | Message action. |
Examples
Profile screen
Header area of a user profile screen.
swift
DSUserProfileCard(
user: currentUser,
onFollow: { viewModel.followUser(currentUser) },
onMessage: { navigate(.chat(currentUser)) }
)