Skip to content

Open camera and giphy directly from attachment menu #635

@f3dm76

Description

@f3dm76

What are you trying to achieve?

I am using makeLeadingComposerView to make a custom attachments menu. I need to add button for photo, camera and giphy - and open these things directly after pressing corresponding buttons. Currently I can open the photo picker, but can't open camera without going to picker first. And I have to open instantCommands menu first to select giphy. I need to open them directly.

If possible, how can you achieve this currently?

Yes by changing the state binding, but it requires 2 steps
makeLeadingComposerView(state: Binding

What would be the better way?

add .camera and .giphy options to PickerTypeState

GetStream Environment

GetStream Chat version: 4.62.0
GetStream Chat frameworks: StreamChat, StreamChatUI
iOS version: 18.0
Swift version: 6.0
Xcode version: 16.0
Device: sim iPhone 16 pro max

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    UpcomingenhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions