exyte / Chat

A SwiftUI Chat UI framework with fully customizable message cells and a built-in media picker
MIT License
845 stars 129 forks source link

Feature request: 'user is typing' message bubble #60

Open mixtly87 opened 6 months ago

mixtly87 commented 6 months ago

Is it possible to add a 'user is typing' feature. Something like a message bubble with three dots and list of chat-users in the caption-label bellow the buble, indicating who is currently typing in the chat?

f3dm76 commented 2 months ago

Hey @mixtly87, the important thing here is that you'd have to track the statuses yourself anyway. I could add a modifier to accept a string with the list of names who are currently typing and display them on top of input view with some simple animation, if that's what you'd like. Or you could easily achieve that UI on your end by constructing a custom input view builder. Or by using a MainBodyBuilderClosure from comments-chat-type branch (this one will be released sometime in a future)

mainBodyBuilder: { listView, inputView in
            VStack {
                listView
                // typing view
                inputView
            }
        }