Understand the InputBarAccessoryView layout
masterThe InputBarAccessoryView layout consists of four InputStackViews and one InputTextView:
- Top/Bottom/Left/Right
InputStackViews: Act as toolbars for placing buttons. InputTextView: A self-sizing text view (can be replaced with any other view).
Padding: You can adjust the layout by changing the padding and textViewPadding properties; constraints update automatically.
Stack View Widths: The left and right InputStackViews are anchored by width constraints. This allows the InputTextView to fill the remaining space. You can hide all buttons to the left or right by setting their width constraint constant to 0.
func setLeftStackViewWidthConstant(to newValue: CGFloat, animated: Bool)
func setRightStackViewWidthConstant(to newValue: CGFloat, animated: Bool)