Files
simplex-chat/apps/ios/Shared
Narasimha-sc d97fe5fd0c ios: offer creating a profile for an invitation
Mirrors the Kotlin flow: both pickers get an "Add profile" row, and
CreateProfile gains an optional onCreate so the same form is reused. Each
picker's create function is five lines that end in the path a row tap
already takes - changeProfile(newUser) for a prepared chat,
selectedProfile plus .switchingUser for a one-time link.

The sheets are attached to body rather than to a row, because rows live
in a LazyVStack and profilePicker() is swapped for currentSelection()
when listExpanded flips. Surface 1's picker height is computed from the
row count, so it needs one more row.

The list is refreshed after creating, for the same reason as Kotlin, and
interactive dismissal is blocked while the create is in flight so backing
out cannot leave the invitation moved.

Not compiled: no Swift toolchain available.
2026-09-05 11:27:56 +00:00
..