screens/DSProfileEditScreen
DSProfileEditScreen
screensFull 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
| Prop | Type | Default | Description |
|---|---|---|---|
| profilereq | Binding<DSUserProfile> | — | Bound user profile model. |
| onSavereq | (() -> Void) | — | Save button action. |
| isSaving | Bool | false | Shows spinner on the save button. |
| saveError | String? | nil | Inline error message. |
| showSocialLinks | Bool | true | Toggles 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
)