{"action":"created","issue":{"url":"https://api.github.com/repos/nathantannar4/InputBarAccessoryView/issues/42","repository_url":"https://api.github.com/repos/nathantannar4/InputBarAccessoryView","labels_url":"https://api.github.com/repos/nathantannar4/InputBarAccessoryView/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/nathantannar4/InputBarAccessoryView/issues/42/comments","events_url":"https://api.github.com/repos/nathantannar4/InputBarAccessoryView/issues/42/events","html_url":"https://github.com/nathantannar4/InputBarAccessoryView/issues/42","id":372521593,"node_id":"MDU6SXNzdWUzNzI1MjE1OTM=","number":42,"title":"Constraint bug when setting inputTextView text directly to long string","user":{"login":"lordcodes","id":11318675,"node_id":"MDQ6VXNlcjExMzE4Njc1","avatar_url":"https://avatars0.githubusercontent.com/u/11318675?v=4","gravatar_id":"","url":"https://api.github.com/users/lordcodes","html_url":"https://github.com/lordcodes","followers_url":"https://api.github.com/users/lordcodes/followers","following_url":"https://api.github.com/users/lordcodes/following{/other_user}","gists_url":"https://api.github.com/users/lordcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/lordcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordcodes/subscriptions","organizations_url":"https://api.github.com/users/lordcodes/orgs","repos_url":"https://api.github.com/users/lordcodes/repos","events_url":"https://api.github.com/users/lordcodes/events{/privacy}","received_events_url":"https://api.github.com/users/lordcodes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-22T13:28:49Z","updated_at":"2018-10-22T13:46:18Z","closed_at":"2018-10-22T13:46:18Z","author_association":"CONTRIBUTOR","body":"I am having an issue with the inputBarAccessoryView within an app.\r\n\r\nWe need to set a draft message that was previously stored. This is done using:\r\n\r\n```\r\ninputBar.inputTextView.text = draftMessage\r\n```\r\n\r\nIn our app this causes the inputBarTextView to grow past the top of the screen (going underneath status bar) and the inputBarTextView is left unscrollable so you cannot scroll within it. However, when I reproduced this in the example app, the box doesn't go beyond the maximum height, however, it is still not scrollable, so the same issue has been encountered.\r\n\r\nIf you look in the console when this happens, it is due to some conflicting constraints and so the end result in UI depends on which constraints the system decides to break.\r\n\r\n```\r\n2018-10-22 14:01:14.392632+0100 Example[63316:4832764] [LayoutConstraints] Unable to simultaneously satisfy constraints.\r\n\tProbably at least one of the constraints in the following list is one you don't want. \r\n\tTry this: \r\n\t\t(1) look at each constraint and try to figure out which you don't expect; \r\n\t\t(2) find the code that added the unwanted constraint or constraints and fix it. \r\n(\r\n    \"<NSLayoutConstraint:0x600003df63f0 UIView:0x7fb4e6e4a740.bottom == UILayoutGuide:0x6000027c55e0'UIViewSafeAreaLayoutGuide'.bottom - 6   (active)>\",\r\n    \"<NSLayoutConstraint:0x600003df63a0 V:|-(0)-[InputBarAccessoryView.InputStackView:0x7fb4e6e55c40]   (active, names: '|':Example.iMessageInputBar:0x7fb4e6e47a40 )>\",\r\n    \"<NSLayoutConstraint:0x600003df6350 InputBarAccessoryView.InputStackView:0x7fb4e6e55c40.bottom == UIView:0x7fb4e6e4a740.top - 6   (active)>\",\r\n    \"<NSLayoutConstraint:0x600003dda300 '_UITemporaryLayoutHeight' Example.iMessageInputBar:0x7fb4e6e47a40.height == 0   (active)>\",\r\n    \"<NSLayoutConstraint:0x600003df5e00 'UIViewSafeAreaLayoutGuide-bottom' V:[UILayoutGuide:0x6000027c55e0'UIViewSafeAreaLayoutGuide']-(0)-|   (active, names: '|':Example.iMessageInputBar:0x7fb4e6e47a40 )>\"\r\n)\r\n```\r\n\r\nTo reproduce in example app, I set long text at the end of `viewDidLoad` within `CommonTableViewController`.\r\n\r\n```\r\ninputBar.inputTextView.text = \"\"\"\r\n\"\"\"\r\n```\r\n\r\nI pasted about 10 paragraphs of lorum ipsum within the string."},"comment":{"url":"https://api.github.com/repos/nathantannar4/InputBarAccessoryView/issues/comments/431840355","html_url":"https://github.com/nathantannar4/InputBarAccessoryView/issues/42#issuecomment-431840355","issue_url":"https://api.github.com/repos/nathantannar4/InputBarAccessoryView/issues/42","id":431840355,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTg0MDM1NQ==","user":{"login":"lordcodes","id":11318675,"node_id":"MDQ6VXNlcjExMzE4Njc1","avatar_url":"https://avatars0.githubusercontent.com/u/11318675?v=4","gravatar_id":"","url":"https://api.github.com/users/lordcodes","html_url":"https://github.com/lordcodes","followers_url":"https://api.github.com/users/lordcodes/followers","following_url":"https://api.github.com/users/lordcodes/following{/other_user}","gists_url":"https://api.github.com/users/lordcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/lordcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordcodes/subscriptions","organizations_url":"https://api.github.com/users/lordcodes/orgs","repos_url":"https://api.github.com/users/lordcodes/repos","events_url":"https://api.github.com/users/lordcodes/events{/privacy}","received_events_url":"https://api.github.com/users/lordcodes/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T13:46:18Z","updated_at":"2018-10-22T13:46:18Z","author_association":"CONTRIBUTOR","body":"Accidental duplicate due to the GitHub data storage issue incident."}}
{"actor":{"display_login":"lordcodes"}}