diff --git a/WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m b/WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m index 385e5f7c1cd2..37cebde1075b 100644 --- a/WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m +++ b/WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m @@ -401,20 +401,11 @@ - (void)configureViewConstraints metrics:nil views:views]]; - // ReplyTextView Constraints - [[self.replyTextView.leftAnchor constraintEqualToAnchor:self.tableView.leftAnchor] setActive:YES]; - [[self.replyTextView.rightAnchor constraintEqualToAnchor:self.tableView.rightAnchor] setActive:YES]; - - self.replyTextViewBottomConstraint = [NSLayoutConstraint constraintWithItem:self.view - attribute:NSLayoutAttributeBottom - relatedBy:NSLayoutRelationEqual - toItem:self.replyTextView - attribute:NSLayoutAttributeBottom - multiplier:1.0 - constant:0.0]; - self.replyTextViewBottomConstraint.priority = UILayoutPriorityDefaultHigh; - - [self.view addConstraint:self.replyTextViewBottomConstraint]; + [NSLayoutConstraint activateConstraints:@[ + [self.replyTextView.leadingAnchor constraintEqualToAnchor:self.replyTextView.leadingAnchor], + [self.replyTextView.trailingAnchor constraintEqualToAnchor:self.replyTextView.trailingAnchor], + [self.view.keyboardLayoutGuide.topAnchor constraintEqualToAnchor:self.replyTextView.bottomAnchor] + ]]; // Suggestions Constraints // Pin the suggestions view left and right edges to the reply view edges