Composer Update - Typing and sending a message

- Updated input bar paddings according to design review
This commit is contained in:
Gil Eluard
2021-03-18 07:06:59 +01:00
parent 8d5b58da55
commit 82c5ea14d6
2 changed files with 35 additions and 38 deletions

View File

@@ -86,6 +86,8 @@
growingTextView.textColor = ThemeService.shared.theme.textPrimaryColor;
growingTextView.tintColor = ThemeService.shared.theme.tintColor;
growingTextView.internalTextView.showsVerticalScrollIndicator = NO;
growingTextView.internalTextView.keyboardAppearance = ThemeService.shared.theme.keyboardAppearance;
if (growingTextView.isFirstResponder)
{
@@ -187,7 +189,7 @@
{
[UIView animateWithDuration:.4 delay:0 usingSpringWithDamping:0.7 initialSpringVelocity:8 options:UIViewAnimationOptionCurveEaseIn animations:^{
self.rightInputToolbarButton.alpha = 1;
self.messageComposerContainerTrailingConstraint.constant = self.frame.size.width - self.rightInputToolbarButton.frame.origin.x + 4;
self.messageComposerContainerTrailingConstraint.constant = self.frame.size.width - self.rightInputToolbarButton.frame.origin.x + 12;
[self layoutIfNeeded];
} completion:^(BOOL finished) {
}];
@@ -196,7 +198,7 @@
{
[UIView animateWithDuration:.4 delay:0 usingSpringWithDamping:0.7 initialSpringVelocity:8 options:UIViewAnimationOptionCurveEaseIn animations:^{
self.rightInputToolbarButton.alpha = 0;
self.messageComposerContainerTrailingConstraint.constant = 8;
self.messageComposerContainerTrailingConstraint.constant = 12;
[self layoutIfNeeded];
} completion:^(BOOL finished) {
}];