title: MessageKit Not Showing Message Input Bar Swift 5
body: <p>So This is the controller hierarchy  tabBarController -> some controller &amp; chat channel controller. </p>
  
  <p>and this chat channel controller is also a navigation controller. When I select row it pushes to chat controller which is of class MessageViewController.</p>
  
  <p>I have 2 issues here one minor one major.</p>
  
  <p>minor one is that the avatar.</p>
  
  <pre><code>    func avatarSize(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -&gt; CGSize {
          print("delegate method called")
          return .zero
  }
  </code></pre>
  
  <p>I set it to zero in one of the delegates but it still shows.And also it never prints the statement.</p>
  
  <p>major one is that the input bar is not showing at all.
  I already have InputBarAccessoryView in my pod file 
  and </p>
  
  <pre><code>messageInputBar.delegate = self as InputBarAccessoryViewDelegate
  
  extension ChatViewController: InputBarAccessoryViewDelegate {
  
      func inputBar(_ inputBar: InputBarAccessoryView, didPressSendButtonWith text: String) {
          print("text")
      }
  
  }
  </code></pre>
  
  <p>but nothing shows. I also checked the views and I couldn't find it
  <a href="https://i.stack.imgur.com/nwVSP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nwVSP.png" alt="chat view "></a>
  <a href="https://i.stack.imgur.com/3tXeY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3tXeY.png" alt="view hierachy"></a></p>