Skip to content

[Bug] iOS share ignores line breaks between text and URL (UIActivityViewController) #1

@wilsonatb

Description

@wilsonatb

Currently, the iOS share implementation (resources/ios/ShareFunctions.swift) passes the items separately (title, text, url) to the UIActivityViewController. Because of this, when sharing to certain apps like WhatsApp, the content is automatically concatenated by the target app, which strips or ignores the intended line breaks (\n\n) before the URL.

Expected Behavior
The iOS implementation should mirror the Android behavior found in resources/android/ShareFunctions.kt. It should format the payload as a single concatenated text block (text + "\n\n" + url) before passing it to the share sheet. This ensures that line breaks are strictly preserved across all target applications.

Actual Behavior
Currently on iOS, the URL is appended directly at the end of the text. It often appears on the same visual line or completely ignores the intended line break spacing.

Example

Expected Output (Current Android behavior):

💰 Detalles de la operación
...
Cédula/RIF: ...

https://monto-listo.com/descargar

Actual Output (Current iOS behavior):

💰 Detalles de la operación
...
Cédula/RIF: ...https://monto-listo.com/descargar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions