InputBarAccessoryViewDelegate
public protocol InputBarAccessoryViewDelegate : AnyObject
InputBarAccessoryViewDelegate is a protocol that can recieve notifications from the InputBarAccessoryView
-
inputBar(_:didPressSendButtonWith:)
Default implementationCalled when the default send button has been selected
Default Implementation
Declaration
Swift
func inputBar(_ inputBar: InputBarAccessoryView, didPressSendButtonWith text: String)
Parameters
inputBar
The InputBarAccessoryView
text
The current text in the InputBarAccessoryView’s InputTextView
-
inputBar(_:didChangeIntrinsicContentTo:)
Default implementationCalled when the instrinsicContentSize of the InputBarAccessoryView has changed. Can be used for adjusting content insets on other views to make sure the InputBarAccessoryView does not cover up any other view
Default Implementation
Declaration
Swift
func inputBar(_ inputBar: InputBarAccessoryView, didChangeIntrinsicContentTo size: CGSize)
Parameters
inputBar
The InputBarAccessoryView
size
The new instrinsicContentSize
-
inputBar(_:textViewTextDidChangeTo:)
Default implementationCalled when the InputBarAccessoryView’s InputTextView’s text has changed. Useful for adding your own logic without the need of assigning a delegate or notification
Default Implementation
Declaration
Swift
func inputBar(_ inputBar: InputBarAccessoryView, textViewTextDidChangeTo text: String)
Parameters
inputBar
The InputBarAccessoryView
text
The current text in the InputBarAccessoryView’s InputTextView
-
inputBar(_:didSwipeTextViewWith:)
Default implementationCalled when a swipe gesture was recognized on the InputBarAccessoryView’s InputTextView
Default Implementation
Declaration
Swift
func inputBar(_ inputBar: InputBarAccessoryView, didSwipeTextViewWith gesture: UISwipeGestureRecognizer)
Parameters
inputBar
The InputBarAccessoryView
gesture
The gesture that was recognized