{"action":"created","issue":{"url":"https://api.github.com/repos/MessageKit/MessageKit/issues/962","repository_url":"https://api.github.com/repos/MessageKit/MessageKit","labels_url":"https://api.github.com/repos/MessageKit/MessageKit/issues/962/labels{/name}","comments_url":"https://api.github.com/repos/MessageKit/MessageKit/issues/962/comments","events_url":"https://api.github.com/repos/MessageKit/MessageKit/issues/962/events","html_url":"https://github.com/MessageKit/MessageKit/issues/962","id":393662169,"node_id":"MDU6SXNzdWUzOTM2NjIxNjk=","number":962,"title":"The MessageInputBar moves up when pressing return key on the keyboard","user":{"login":"n1schal","id":15378179,"node_id":"MDQ6VXNlcjE1Mzc4MTc5","avatar_url":"https://avatars3.githubusercontent.com/u/15378179?v=4","gravatar_id":"","url":"https://api.github.com/users/n1schal","html_url":"https://github.com/n1schal","followers_url":"https://api.github.com/users/n1schal/followers","following_url":"https://api.github.com/users/n1schal/following{/other_user}","gists_url":"https://api.github.com/users/n1schal/gists{/gist_id}","starred_url":"https://api.github.com/users/n1schal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1schal/subscriptions","organizations_url":"https://api.github.com/users/n1schal/orgs","repos_url":"https://api.github.com/users/n1schal/repos","events_url":"https://api.github.com/users/n1schal/events{/privacy}","received_events_url":"https://api.github.com/users/n1schal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-22T10:25:37Z","updated_at":"2018-12-26T23:41:07Z","closed_at":"2018-12-26T13:42:05Z","author_association":"NONE","body":"\r\n- What version of MessageKit are you using?\r\n2.0.o\r\n- What version of iOS are you running on?\r\n12.1\r\n- What version of Swift are you running on?\r\n4.0\r\n- What device(s) are you testing on? Are these simulators?\r\niPhone 6 (Device), iPhone 8(Simulator)\r\n- Is the issue you're experiencing reproducable in the example app?\r\nNo\r\n\r\nI have two issues. First : The MessageInputBar keeps moving up when I press Return until the bar reaches the Status Bar and keeps on adding white space below it. \r\n\r\nOnce it reaches the top, it returns back to its usual position.\r\n\r\nAfter going through some issues listed here, I removed IQKeyboardManager and then tried running my app, but the issue didn't go away.\r\n\r\nAlso, when I dismiss the TextInputView by dragging it down, the MIB seems to rise above.\r\n\r\nI've attached the video of my issues. Please take a look and suggest steps to resolve these.\r\n\r\n![ezgif com-video-to-gif](https://user-images.githubusercontent.com/15378179/50373258-13015100-0604-11e9-8632-a8ebfb272f67.gif)\r\n\r\n\r\nI have a custom navigation bar I created from XIB to match my needs and added it with the addSubView method.\r\n\r\n```swift\r\n override func viewDidLoad() {\r\n        super.viewDidLoad()\r\n\r\n//         Do any additional setup after loading the view.\r\n        let frame = CGRect.init(x: 0, y: 0, width: ScreenSize.SCREEN_WIDTH, height: AppDimensions.ConversationHeaderHeight)\r\n        headerView = ConversationHeaderView.init(frame: frame)\r\n        view.addSubview(headerView)\r\n        headerView.btnBack.addTarget(self, action:#selector(onBackButtonTap), for: .touchUpInside)\r\n\r\n        headerView.senderImageView.sd_setImage(with: URL(string: \"https://heroichollywood.b-cdn.net/wp-content/uploads/2017/09/Batman_Ben_Affeck.jpg?x42694\"), placeholderImage: UIImage(named: \"user\"))\r\n        headerView.senderNameLabel.text = \"Bruce Wayne\"\r\n        headerView.senderActiveLabel.text = \"Active \\(23)\\(\"min\") ago\"\r\n        \r\n        \r\n//        updateTitleView(title: \"Bruce Wayne\", subtitle: \"Active \\(23)\\(\"min\") ago\")\r\n//        setupAvatar()\r\n//        setupBackButton()\r\n        \r\n        scrollsToBottomOnKeyboardBeginsEditing = true\r\n        maintainPositionOnKeyboardFrameChanged = true\r\n        \r\n        \r\n        messagesCollectionView.register(ConversationCollectionViewCell.self)\r\n        messagesCollectionView.messagesDataSource = self\r\n        messagesCollectionView.messagesLayoutDelegate = self\r\n        messagesCollectionView.messagesDisplayDelegate = self\r\n        \r\n        configureMessageInputBar()\r\n    }\r\n\r\nfunc configureMessageInputBar(){\r\n        messageInputBar.isTranslucent = false\r\n        messageInputBar.separatorLine.isHidden = true\r\n        messageInputBar.inputTextView.tintColor = AppTheme.Color.lightGrayText\r\n        messageInputBar.inputTextView.backgroundColor = AppTheme.Color.veryLightGray\r\n        messageInputBar.inputTextView.placeholder = \"Send a Chat\"\r\n        messageInputBar.inputTextView.placeholderLabel.font = AppTheme.Font.regularFont16\r\n        messageInputBar.inputTextView.placeholderTextColor = AppTheme.Color.lightGrayText\r\n        messageInputBar.inputTextView.textContainerInset = UIEdgeInsets(top: 8, left: 16, bottom: 8, right: 36)\r\n        messageInputBar.inputTextView.placeholderLabelInsets = UIEdgeInsets(top: 8, left: 20, bottom: 8, right: 36)\r\n        messageInputBar.inputTextView.layer.borderColor = AppTheme.Color.clear.cgColor\r\n        messageInputBar.inputTextView.layer.borderWidth = 1.0\r\n        messageInputBar.inputTextView.layer.cornerRadius = 16.0\r\n        messageInputBar.inputTextView.layer.masksToBounds = true\r\n        messageInputBar.inputTextView.scrollIndicatorInsets = UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0)\r\n        configureInputBarItems()\r\n    }\r\n\r\nprivate func configureInputBarItems() {\r\n        messageInputBar.setRightStackViewWidthConstant(to: 36, animated: false)\r\n        messageInputBar.sendButton.imageView?.backgroundColor = .clear\r\n        messageInputBar.sendButton.contentEdgeInsets = UIEdgeInsets(top: 2, left: 2, bottom: 2, right:2)\r\n        messageInputBar.sendButton.setSize(CGSize(width: 36, height: 36), animated: false)\r\n        messageInputBar.sendButton.image = UIImage.init(named: \"send\")\r\n        messageInputBar.sendButton.title = nil\r\n        messageInputBar.textViewPadding.right = -38\r\n    }\r\n\r\n```\r\n\r\nAlso, how do i get rid of the grey background of the MIB ? I want to style it so that the only thing that has a background is the inputTextView, which I have achieved, but I haven't quite figured out how to  have a fully transparent MIB.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MessageKit/MessageKit/issues/comments/450041816","html_url":"https://github.com/MessageKit/MessageKit/issues/962#issuecomment-450041816","issue_url":"https://api.github.com/repos/MessageKit/MessageKit/issues/962","id":450041816,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDA0MTgxNg==","user":{"login":"nathantannar4","id":15272998,"node_id":"MDQ6VXNlcjE1MjcyOTk4","avatar_url":"https://avatars2.githubusercontent.com/u/15272998?v=4","gravatar_id":"","url":"https://api.github.com/users/nathantannar4","html_url":"https://github.com/nathantannar4","followers_url":"https://api.github.com/users/nathantannar4/followers","following_url":"https://api.github.com/users/nathantannar4/following{/other_user}","gists_url":"https://api.github.com/users/nathantannar4/gists{/gist_id}","starred_url":"https://api.github.com/users/nathantannar4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathantannar4/subscriptions","organizations_url":"https://api.github.com/users/nathantannar4/orgs","repos_url":"https://api.github.com/users/nathantannar4/repos","events_url":"https://api.github.com/users/nathantannar4/events{/privacy}","received_events_url":"https://api.github.com/users/nathantannar4/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T23:41:07Z","updated_at":"2018-12-26T23:41:07Z","author_association":"MEMBER","body":"@n1schal I think you can still use `IQKeyboardManager`, there is a way to disable it for a specific `UIViewController` (I think)"}}
{"actor":{"display_login":"nathantannar4"}}