ChatInputView SwiftUI - admiral-team/admiralui-ios GitHub Wiki
Struct
A view that displays the input text view with send button and file handle button.
Declaration
public struct ChatInput: View, AccessabilitySupportUIKit
Overview
The component for typing a text message and sending message.
Live example
Configure a Chat Input
Configure a chat input with default parameters:
ChatInput(
.constant("Text"),
placeholder: "Введите сообщение",
tapSendButton: {},
tapFileButton: {},
isShowFileButton: true
)
Control an autocapitalizationType and autocorrectionType
ChatInput(
autocapitalizationType: .none,
autocorrectionType: .default,
)
Set maximum number of lines and max height of chat input
ChatInput(
maxHeight: 300,
maxNumberOfLines: 10,
)
Contribution
You can help us to find bugs or ask us to add features.
- To start
issue
please use ready-made templates. - To make changes to the repository, you need to create a
fork
of the project, make changes to the code and create apull request
in our project. You can read more about this in the Github documentation.