screens/DSProfileEditScreen

DSProfileEditScreen

screens
since v2.0

Full profile editing screen with avatar picker, name/bio fields, social links section, and a save button with loading state.

iOS 17+

Purpose

User profile setup and editing in any authenticated app.

Props

PropTypeDefaultDescription
profilereqBinding<DSUserProfile>Bound user profile model.
onSavereq(() -> Void)Save button action.
isSavingBoolfalseShows spinner on the save button.
saveErrorString?nilInline error message.
showSocialLinksBooltrueToggles the social links section.

Examples

Edit profile screen

Full profile editor with all sections.

swift
DSProfileEditScreen(
    profile: $viewModel.editableProfile,
    onSave: { viewModel.saveProfile() },
    isSaving: viewModel.isSaving,
    saveError: viewModel.saveError
)

Related Components