screens/DSUserProfileCard

DSUserProfileCard

screens
since v2.0

Full 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

PropTypeDefaultDescription
userreqDSUserโ€”User model (name, bio, avatar, stats).
onFollow(() -> Void)?nilFollow/connect action.
onMessage(() -> Void)?nilMessage action.

Examples

Profile screen

Header area of a user profile screen.

swift
DSUserProfileCard(
    user: currentUser,
    onFollow: { viewModel.followUser(currentUser) },
    onMessage: { navigate(.chat(currentUser)) }
)

Related Components