title: swift iMessage style keyboard input
body: <p>i am trying to implement an iMessage style keyboard input with a textview that sits at the bottom of the screen then slides up with the keyboard when you touch the textView, then is docked to the top of the keyboard. </p>
  
  <p>I found <a href="https://github.com/oseparovic/MessageComposerView" rel="nofollow">MessageComposerView</a> which is exactly what I want. Unfortunately I cannot get it working ( I am using swift). </p>
  
  <p>below is my code:</p>
  
  <pre><code>import UIKit
  
  class CommentsViewController: UIViewController, MessageComposerViewDelegate {
  
  
      var messageComposerView: MessageComposerView!
  
      override func viewDidLoad() {
  
          super.viewDidLoad()
  
  
          let defaultWidth = view.frame.size.width
          let defaultHeight = CGFloat(54.0)
          let subviewFrame = CGRect(x: 0, y: view.frame.height - defaultHeight, width: defaultWidth, height: defaultHeight)
          messageComposerView = MessageComposerView(frame: subviewFrame) as MessageComposerView
          view.addSubview(messageComposerView)
  
      }
  
      func messageComposerSendMessageClickedWithMessage(message: String!) {
  
  
      }
  
  }
  </code></pre>
  
  <p>however it does not show up. Ive printed the view and its frame is correct, its just that there is nothing there for some reason. Everything looks like it should be working. Does anyone see anything wrong with my current implementation?</p>