exyte / Chat

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

Disable attachments and audio recording? #100

Open rnaud opened 1 day ago

rnaud commented 1 day ago

I can't seem to find this in the documentation.

Is there a way to disable everything but text in the setup?

gzlboy commented 18 hours ago

you can see the enum in this:

public enum AvailableInputType { case full // media + text + audio case textAndMedia case textAndAudio case textOnly }

and use this modifier:

ChatView(messages: chatVM.messages) { draft in } .setAvailableInput(.textOnly)