You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can customize any part of the UI that you want!
// Border between the text view and the scroll view
borderColor =.lightGray
// Change the appearance of the text view and its content
messageView.inset =UIEdgeInsets(top:8, left:16, bottom:8, right:16)
messageView.textView.placeholderText ="New message..."
messageView.textView.placeholderTextColor =.lightGray
messageView.font =.systemFont(ofSize:17)
// Setup the button using text or an icon
messageView.set(buttonTitle:"Send", for:.normal)
messageView.addButton(target:self, action: #selector(onButton))
messageView.buttonTint =.blue
// Set custom attributes for an autocompleted string
lettintColor=.blue
messageAutocompleteController.autocompleteTextAttributes =["@":[.font:UIFont.preferredFont(forTextStyle:.body),.foregroundColor: tintColor,.backgroundColor: tintColor.withAlphaComponent(0.1)]]
Autocomplete
The base view controller uses a MessageAutocompleteController control to handle text autocompletion.
This control uses a plain UITableView to display its autocomplete. Add a dataSource and delegate to display and handle interactions.