conversation view scrolls behind bars

This commit is contained in:
Michael Kirk 2018-06-29 16:27:09 -06:00
parent f8abe32ae9
commit d5fa7f9b25

View file

@ -559,15 +559,13 @@ typedef enum : NSUInteger {
self.collectionView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive; self.collectionView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive;
self.collectionView.backgroundColor = [UIColor whiteColor]; self.collectionView.backgroundColor = [UIColor whiteColor];
[self.view addSubview:self.collectionView]; [self.view addSubview:self.collectionView];
[self.collectionView autoPinWidthToSuperview]; [self.collectionView autoPinEdgesToSuperviewEdges];
[self.collectionView autoPinToTopLayoutGuideOfViewController:self withInset:0];
[self.collectionView applyScrollViewInsetsFix]; [self.collectionView applyScrollViewInsetsFix];
_inputToolbar = [[ConversationInputToolbar alloc] initWithConversationStyle:self.conversationStyle]; _inputToolbar = [[ConversationInputToolbar alloc] initWithConversationStyle:self.conversationStyle];
self.inputToolbar.inputToolbarDelegate = self; self.inputToolbar.inputToolbarDelegate = self;
self.inputToolbar.inputTextViewDelegate = self; self.inputToolbar.inputTextViewDelegate = self;
[self.collectionView autoPinToBottomLayoutGuideOfViewController:self withInset:0];
self.loadMoreHeader = [UILabel new]; self.loadMoreHeader = [UILabel new];
self.loadMoreHeader.text = NSLocalizedString(@"CONVERSATION_VIEW_LOADING_MORE_MESSAGES", self.loadMoreHeader.text = NSLocalizedString(@"CONVERSATION_VIEW_LOADING_MORE_MESSAGES",